html5 - jquery-file-upload progressbar moving backward -
i have popup modal. need each time popup opens allow 1 successful file upload. mean if again popup opens (without refreshing page) allow again single file upload. code-
if(typeof fileuploadobj != 'undefined') { jquery('#fileupload table tbody tr.template-download').remove(); jquery('#fileupload table tbody tr.template-upload').remove(); //fileuploadobj.destroy; // jquery("#fileupload").fileupload('destroy'); } // initialize jquery file upload widget: fileuploadobj = jquery('#fileupload').fileupload({ acceptfiletypes: /(.+wav)/i, dropzone: jquery('.upload_dropzone'), autoupload: true, maxnumberoffiles: 1, formdata: {some_id: 999} });
now each upload (2nd, 4th etc) progress bar moving right left. how solve this. please help.
finally found reason of issue. files small (few 100 kbs). first upload shows progress bar correctly , progressbar reached 100%. when start second upload progress bar gently comes 0% , in mean time upload being completed (small size). progress bar looks running backward. tested using big files , found comes 0 , shows original progress.
Comments
Post a Comment