There is currently no way of suspending or canceling an upload once it's in progress.
What is the best way to suspend a file upload using the filepicker.io JavaScript API?
-
26-06-2022 - |
문제
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?
해결책
제휴하지 않습니다 StackOverflow