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?
There is currently no way of suspending or canceling an upload once it's in progress.