Get bucket upload URLs

Get upload URLs for uploading to an AppGyver storage bucket

Adds upload URLs to the files for use in a subsequent Upload files flow function.

Input arguments

Label

Key

Type

Required?

Default

Description

Files

files

Array

Yes

List of files to be uploaded

Headers

headers

Object

No

[object Object]

Output arguments

Number of outputs: 2

Label

Key

Type

Description

Files

files

Array

Returns inputted list of files with upload url added to them

  • Local path

files.path

String

Absolute local filesystem path representing the file location on the device, including the filename and extension. On web, this is created via the [`createObjectURL`](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL) method.

  • MIME type

files.mimeType

String

MIME type of the file, if it could be determined.

  • Name

files.name

String

Name of the file in the local filesystem, if applicable. Note that the filename and extension are included in the **Local path** property already.

  • Size

files.size

Number

Size of the file, in bytes.

  • Created at

files.createdAt

String

Creation datetime of the file, if it can be determined.

  • Modified at

files.modifiedAt

String

Datetime when the file was last modified, if it can be determined.

  • Stroage key

files.storageKey

String

Unique storage key that will be used to retrieve the item, after it has been uploaded.

  • Upload URL

files.uploadUrl

String

Upload URL that you can use to upload your file. The URL is valid for 15 minutes after it has been generated.

Events

No events.

Errors

Label

Code

Description

Unknown error

unknown

Thrown when unknown error occures while trying to download files.