Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Wrong file lenght
  • Uploadify shows wrong size of selected file.
    I've found the problem in your code:

    if(k>1000){k=Math.round(k*0.001*100)*0.01;l="MB"}

    and changed it to

    if(k>1024){k=Math.round(k/1024*100)*0.01;l="MB"}
    . Now it`s working fine for me. Can you please apply this changes for the next release?
  • You are right, I find it also.
  • I can verify that this is still a problem with uploadify v2.1.0. I also had to manually change the javascript to report the proper filesize for files reported in MB. The issue has to do with dividing by 1024 instead of 1000 when converting between KB and MB. Here is my code modification to jquery.uploadify.v2.1.0.js:

    // JJF: fix uploadify bug calculating MB from KB
    //if (byteSize > 1000) {
    // byteSize = Math.round(byteSize *.001 * 100) * .01;
    if (byteSize >= 1024) {
    byteSize = Math.round(byteSize / 1024 * 100) * .01;