This repository has been archived by the owner on Nov 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Pause file upload in case of network disconnection/unresponsive server #1974
Comments
Why do you want to pause a failed upload? Just retry it manually after it fails |
If i retry it manually it will throw same error after each retry. I want to give this control to user so that user can check his/her connection in that time. Also on onError event why uploader calls total progress event. This happens when file exceeds total file size , Invalid extension/type. First status changed from submitting to rejected below is the debug log
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Type of issue
Uploader type
Bug Report
Fine Uploader version
5.5.1
Browsers where the bug is reproducible
chrome
Operating systems where the bug is reproducible
Ubuntu 16.10
Exact steps required to reproduce the issue
For example:
All relevant Fine Uploader-related code that you have written
uploadComponent.fineUploader.on('StatusChange',(id,oldStatus,newStatus)=> {
var uuid = this.fineUploader.methods.getUuid(id)
console.log('oldStatus',oldStatus)
console.log('newStatus',newStatus)
if(newStatus=='upload failed')
{
uploadComponent.fineUploader.methods.pauseUpload(id)
console.log('pauseUpload')
}
uploadComponent.fineUploader.on('error',(id,name,errorReason,xhr)=> {
// console.log(id)
console.log(name)
console.log(errorReason)
console.log(xhr)
var uuid = this.fineUploader.methods.getUuid(id),
event = document.getElementById(uuid).querySelector(".playPauseIcon")
if(event&&xhr.status==0)
{
event.classList.add("playIcon");
// uploadComponent.fineUploader.methods.pauseUpload(id)
// console.log('pauseUpload')
event.querySelector('i').classList.remove('icon-stop2');
event.querySelector('i').classList.add('icon-playicon');
}
// console.log(xhr)
})
Detailed explanation of the problem
I want to pause the uploader onError/onStatusChange event in case of server code 0 but the uploader is throwing exception
Ignoring pause for file ID 0 (out2.mp4). Not in progress.
Please guide me how can i pause the File in case of server/network disconnection
The text was updated successfully, but these errors were encountered: