[Commits] svn commit: 6201

Subversion Database Process svn at thor.atrc.utoronto.ca
Thu Dec 11 21:18:04 UTC 2008


------------------------------------------------------------------------
r6201 | eli at media.berkeley.edu | 2008-12-11 16:18:03 -0500 (Thu, 11 Dec 2008) | 14 lines
Changed paths:
   M /fluid/components/trunk/src/webapp/fluid-components/js/fluid/uploader/FileQueue.js
   M /fluid/components/trunk/src/webapp/fluid-components/js/fluid/uploader/SWFUploadManager.js
   M /fluid/components/trunk/src/webapp/fluid-components/js/fluid/uploader/Uploader.js
   M /fluid/components/trunk/src/webapp/tests/fluid-tests/uploader/FileQueue-test.html
   M /fluid/components/trunk/src/webapp/tests/fluid-tests/uploader/js/DemoUploadManagerTests.js
   M /fluid/components/trunk/src/webapp/tests/fluid-tests/uploader/js/FileQueueTests.js

FLUID-1948:

- added a counter for the number of files that errorred. Not using it yet, but it's there hidden in the code. 
- removed a spurious pass of the error to the fileStatusUpdater, it didn't cause a bug but we also were not using it
- moved the SWFUpload error constants into our own constants. 
- moved fileStatus constants to uploader for consistency 
- fixed tests that broke because of this move
- added tests to handle the CANCELLED state screwing up getUploadedFiles();
- fixed getUploadedFiles() to also accept files that have a status of CANCELLED (Note: only files that are CANCELLED by an Upload Cancelled event will show up as CANCELLED, since files that have been removed are no longer in the queue)
- checking for the number of files still in queue and then setting the state to "done" or "loaded" as appropriate which in turn sets the display of the buttons

Some code which fixed FLUID-1947 on the server side but more work needs to be done for a fix for the locally running Uploader


------------------------------------------------------------------------



More information about the Commits mailing list