Get bucket download URLs

The files need a storageKey.

Adds AG bucket download URLs to files

Input arguments

Label

Key

Type

Required?

Default

Description

Files

files

Array

Yes

List of files that have a storage key

Output arguments

Number of outputs: 2

Label

Key

Type

Description

Files

files

Array

Returns inputted list of files with download 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.

  • Storage key

files.storageKey

String

Unique storage key, that was provided before uploading the file.

  • Download URL

files.downloadUrl

String

Download URL that is generated from the provided storage key. 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.