What is the best way to suspend a file upload using the filepicker.io JavaScript API?

107 Views Asked by At

I am using the store function from filepicker's JavaScript API to upload files to Amazon S3, like so:

filepicker.store(input, @onUploadSuccess, @onUploadError, @onUploadProgress)

The files are fairly big (several megabytes). Therefore, the users should have the option to suspend the upload after it has been started.

Here's the question:

How would you go about stopping the upload?

Looking at the API documentation, the only thing I can think of is finishing the upload and deleting the file from the server afterwards. That feels wrong, though.

Any suggestions?

1

There are 1 best solutions below

0
On BEST ANSWER

There is currently no way of suspending or canceling an upload once it's in progress.