Upload files

Upload files to their upload URLs

Upload files to the upload URLs in the files. The second output is triggered if some of the uploads fail.

Input arguments

Label

Key

Type

Required?

Default

Description

HTTP method

method

String

Yes

PUT

HTTP method to use.

Headers

headers

Object

No

Headers to include in the HTTP call to download the file.

Files to upload

filesToUpload

Array

Yes

Array of files that have uploadUrl property.

Output arguments

Number of outputs: 2

Label

Key

Type

Description

Upload job ID

jobId

Number

Unique job ID for the upload.

Uploaded files

files

Array

Object describing the cached file in the local filesystem

  • MIME type

files.mimeType

String

File MIME type

  • Size

files.size

Number

File size in bytes

  • Filename

files.name

String

File filename

  • Storage key

files.storageKey

String

Unique storage key for the file, used when uploading to AppGyver-managed S3

Events

Label

Key

Description

Properties

File upload progress

onFileUploadProgress

Triggered when the file upload progresses.

jobId, totalSize, bytesUploaded, files

Errors

Label

Code

Description

Unknown error

unknown

Thrown when trying to upload the files resulted in an unknown error.