Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.63 KB

upload-file.md

File metadata and controls

48 lines (30 loc) · 1.63 KB

UPLOAD FILE

Upload a file to cloud services. Can be used in combination with a Model to link the file to a property of a Model.

INPUTS

File
A File. The File Picker can be used to open a file dialog picker, but the File can also be retrieved from external sources, or generated by code.

Upload
Triggers the upload to start.

OUTPUTS

Results

Cloud File
A Cloud File, which consists of an URL and a file name. Can be connected to a property of a Model if the property type is specified as 'File'.

Events

Success
Triggers when the file was uploaded successfully

Failure
Triggers when there was en error uploading the file

Error
An error message as a string

Error Status Code
An HTTP error code For example, 413 if the file is too large.

Progress Changed
Triggered multiple times during an upload, and the Uploaded Bytes and Uploaded Percent are updated when this signal is triggered.

Progress

Total Bytes
Total size of the file that's being uploaded.

Uploaded Bytes
How many bytes have been uploaded. Starts at 0, and moves towards Total Bytes after the Upload input signal has been triggered.

Uploaded Percent
Percentage of the file that have been uploaded. Starts at 0, and moves towards 100 after the Upload input signal has been triggered.