Fine Uploader 的 onProgress() 回调在 Android 设备中不起作用。这是我的代码:
onProgress: function(id, fileName, loaded, total)
{
//alert('debug'); this alert shows after download is completer
if (loaded < total) {
progress = '"' + fileName + '" uploaded ' + Math.round(loaded / total*100) +'%';
$('#progress').html(progress);
}
else {
$('#progress').html('saving');
}
}
上传完成后调用 onProgress()。可能是什么问题以及如何解决?在官方文档中它说:onProgress(String id, String name, int uploadedBytes, int totalBytes) - called during the upload, as it progresses. Only used by the XHR/ajax uploader.