FineUploader onProgress() callback does not work for Android

前端 未结 1 1030
北海茫月
北海茫月 2021-01-23 05:18

onProgress() callback of Fine Uploader does not work in Android devices. Here is my code:

onProgress: function(id, fileName, loaded, total)
{
    //alert(\'debug         


        
相关标签:
1条回答
  • 2021-01-23 05:36

    After some digging around I determined that -- as of writing this -- Android 4.0.4's stock browser does not fully support the XMLHttpRequest specification. Specifically, the XMLHttpRequest object does not fire ProgressEvents which are essential to determining the progress of the currently uploading file.

    I've attempted to bind event handlers to the onprogress event a variety of ways, and even followed the Mozilla Developer Network article, but to no avail.

    The onprogress event is correctly fired on Chrome for Android.

    I've filed an issue in our tracker here. Hopefully a workaround is found, or Google et al. fix this issue.

    If you have any suggestions for workarounds, please, feel free to share

    0 讨论(0)
提交回复
热议问题