I'm using the blueimp jquery file uploader in conjunction with Amazon S3. The only issue I have is that I'm unable to accurately update my progress bar based on the server side status of the image upload.
I'm also using an older version of PHP (5.3), is there a solution or a workaround that I can use to retrieve the server side progress?
Here is the jquery I'm currently calling:
var url = 'photos/index.php';
$('#fileupload').fileupload({
url: url,
dataType: 'json',
done: function (e, data) {
$.each(data.result.files, function (index, file) {
// display the image preview
});
},
progressall: function (e, data) {
//console.log(data);
var progress = parseInt(data.loaded / data.total * 100, 10);
$('#progress .bar').css(
'width',
progress + '%'
);
}
});