StorageUploadFileRequest

public struct StorageUploadFileRequest : AmplifyOperationRequest

Represents an file upload request initiated by an implementation of the StorageCategoryPlugin protocol.

  • Tag: StorageUploadFileRequest
  • The path for the object in storage

    • Tag: StorageDownloadFileRequest.path

    Declaration

    Swift

    public let path: (any StoragePath)?
  • key

    The unique identifier for the object in storage

    • Tag: StorageUploadFileRequest.key

    Declaration

    Swift

    @available(*, deprecated, message: "Use `path` instead of `key`")
    public let key: String
  • The file to be uploaded

    • Tag: StorageUploadFileRequest.local

    Declaration

    Swift

    public let local: URL
  • Options to adjust the behavior of this request, including plugin-options

    • Tag: StorageUploadFileRequest.options

    Declaration

    Swift

    public let options: Options
    • Tag: StorageUploadFileRequest.init

    Declaration

    Swift

    @available(*, deprecated, message: "Use init(path:local:options﹚")
    public init(key: String, local: URL, options: Options)
  • Declaration

    Swift

    public init(path: any StoragePath, local: URL, options: Options)
  • Options to adjust the behavior of this request, including plugin-options

    • Tag: StorageUploadFileRequestOptions
    See more

    Declaration

    Swift

    struct Options