Size: 101.68 KB
md5_file hash: b32934b96260b72965c327d59066eb73
First released: October 24, 2007 - 8:01am
Changes
- Fixed the Flash Version Detection. SWFUpload "should" properly detect Flash Player v9.0.28.
- Fixed a left-over event call when cancelling an upload.
- Fixed out of order parameters when calling uploadError.
- Changed the showUI function and ui_function setting to swfUploadLoaded/swfupload_loaded_handler. This is more in line with other event callbacks.
- Updated internal flashReady event so it is called like the other events (with setTimeout).
- Added an internal event queue which fixes out of order events in Safari (out of order events were caused by using setTimeout to call them, just as I feared).
New Known Issues
If an upload is cancelled after the progress has reached 100% but before the upload script has finished processing then SWFUpload blocks until the upload script has completed. uploadComplete and fileComplete are still called along with uploadError. I'm still working out the best way to handle this situation (and have received some very good ideas in the comments).
To avoid this issue don't use the cancel feature or track your file progress in the JavaScript and prevent cancel calls to 100% still processing files. The issue will be fixed before the final 7.0 release.
You can test this by performing a long running process in your upload script. In PHP I tested by adding a sleep(30) statement. This causes SWFUpload to progress to 100% and then pause for 30 seconds while the upload script sleeps.