[Commits] svn commit: 5857

Subversion Database Process svn at thor.atrc.utoronto.ca
Tue Oct 28 17:27:19 UTC 2008


------------------------------------------------------------------------
r5857 | eli at media.berkeley.edu | 2008-10-28 13:27:19 -0400 (Tue, 28 Oct 2008) | 10 lines
Changed paths:
   M /fluid/components/trunk/src/webapp/fluid-components/js/fluid/uploader2/DemoUploadManager.js

NOJIRA:
Changed:
    demoState.bytesUploaded = demoState.bytesUploaded 
                            + demoState.chunkSize;

To:
   demoState.bytesUploaded = Math.min(demoState.bytesUploaded 
                   + Math.min(demoState.chunkSize,file.size),file.size);

so that the demo uploader never reports that chunkSize or the bytesUploaded are larger than the actual file size.
------------------------------------------------------------------------



More information about the Commits mailing list