AJAX Uploading - Not waiting for response before continuing
Posted
by
waxical
on Stack Overflow
See other posts from Stack Overflow
or by waxical
Published on 2012-11-29T16:48:01Z
Indexed on
2012/11/29
17:04 UTC
Read the original article
Hit count: 156
I'm using Blueimp's jQuery Uploader (very good it is too btw) and an S3 handler to upload files and then transfer them to S3 via the S3 API (from the PHP SDK).
It works. The problem is, on large files (>1GB) it can take anything up to a a few minutes to transfer (via create-object) onto S3. The PHP file that does this is hung-up until this process is complete. The problem is, the uploader (which utilises the jQuery Ajax method) seems to give up waiting and start again everytime.
I have thought this was related to PHP INI 'max_input_time' or such, as it seemed to wait around 60 seconds, though this now appears to vary. I have upped the max_input_time in PHP INI and others related - but no further.
I've also considered (the more likely) that JS, either in the script or the jQuery method has a timeout. The developer (blueimp) has said there's no such timeout in the front-end script, nor have I seen any and though 'timeout' is referenced in the jQuery Ajax method options, it seems to affect the entire time it uploads rather than the wait for a response - so that's not much use.
Any help or guidance gratefully received.
© Stack Overflow or respective owner