BetaBetaCancel the upload.
The upload() promise rejects with a FileUploadError of type
cancelled. Has no effect once the upload has finished.
BetaValidate and upload the file.
Runs the same rules as LimeFileRepository.validate first and
rejects with a FileUploadError of type invalid when one of
them fails, without sending anything.
Calling this more than once on the same handle rejects.
OptionalonProgress: FileUploadProgressCallbackcalled for each progress event while bytes are sent
the uploaded file. Rejects with a FileUploadError when validation fails, the server rejects the file, the request fails, or the upload is cancelled.
A single file upload, created by LimeFileRepository.createUpload.
The handle is created synchronously and starts nothing until FileUploadHandle.upload is called, so it can be stored and cancelled later, for example when the user removes the file from a composer.
Example: Upload a file and use its contents
Example: Cancel an upload the user no longer wants