Ran into a very bizarre issue and am looking for direction.
Context: uploading large files (up to 100MB) in WordPress. As part of the process there is also a long task running on the server-side (pushing file to DropBox via their API using chunking), so the response is inevitably delayed for larger files. This part can be simulated easily by executing PHP's sleep()
function.
Issue: Fineuploader gets to 100%, shows the waitingForResponse
message for about 15 seconds (server is still not done processing at this point), then proceeds to restart the upload from scratch. After the second try it claims to have received nothing from the server and lists the upload as failed. Console debug messages:
[FineUploader] xhr - server response received for 0
XMLHttpRequest { readyState=4, timeout=0, withCredentials=false, more...}
[FineUploader] responseText =
Server logs show two requests and server echoes the success JSON twice; in the end there are two files on the server.
Question: What can I do to resolve this? Can I return something to FineUploader regularly to ensure there is no timeout?