php - Uploadify not showing progress on Firefox Mac -
my long , enduring website completed. while reviewing testing i've noticed uploadify working fine on browsers except firefox, , happening on firefox on mac machine. odd, files uploading fine, loading pregress bar % not increase , stays @ 0 until script completed. please hellllpppp. code same browsers , working in ie 8. odd, ive tried on browsers, pc , mac.
update:
im still painstakingly trying work. have used onuploadprogress callback function
'onuploadprogress' : function(file, bytesuploaded, bytestotal, totalbytesuploaded, totalbytestotal) { if(bytesuploaded > 10){ var test = ""; } $('#progress').html(totalbytesuploaded + ' bytes uploaded of ' + totalbytestotal + ' bytes.'); } and try see if called. can never call within debugger beyond bytesuploaded = 0 . reason onuploadprogress not initiating during progress. file uploads fine isn't showing progress issue user.
ive tried dig inner workings of uploadify.js file find out uploading process , same thing occurs. below code takes place.
function g(x,c,z){ var v=new date(); var d=v.gettime(); var a=d-j.timer; j.timer=d; var y=c-j.bytesloaded; j.bytesloaded=c; var u=j.queue.queuebytesuploaded+c; if(c > 100){ var test = ""; } var f=math.round(c/z*100); var b=0;var w=(y/1024)/(a/1000); w=math.floor(w*10)/10; if(j.queue.averagespeed>0){ j.queue.averagespeed=(j.queue.averagespeed+w)/2 }else{ j.queue.averagespeed=w } if(w>1000){ b=(w*0.001); j.queue.averagespeed=b } var e="kb/s"; if(b>0){ e="mb/s" } if(a.inarray("onuploadprogress",j.settings.skipdefault)<0){ if(j.settings.progressdata=="percentage"){ a("#"+x.id).find(".data").html(" - "+f+"%") } else{ if(j.settings.progressdata=="speed"){ a("#"+x.id).find(".data").html(" - "+f+e) } } a("#"+x.id).find(".uploadifyprogressbar").css("width",f+"%") } if(j.settings.onuploadprogress){ j.settings.onuploadprogress(x,c,z,u,j.queue.uploadsize) } } ive tried put breakpoints near variable f set. function calls within debugger when 0, thought maybe because time file uploaded tried put if statements within code stop debugger when bytes uploaded greater 100 not much, seems reason not being called after 0 bytes initiated.
i not see errors relating uploadify within console. please hellp!!
Comments
Post a Comment