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

StackOverflow https://stackoverflow.com/questions/18513872

  •  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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top