Tuesday, July 10, 2007

SWFUpload Revision 6.2 Release

So, here I am releasing a new version even though I said I wasn't going to. Some bugs were fixed that warranted a version change and forced me to change some functionality.

Revision 6.2
  • Fixed the Type Coercion error
  • Fixed FileComplete not firing
  • Added setting that indicates whether FileComplete or ServerData should fire (both call the FileComplete JavaScript handler)
  • Fixed a race condition (see R6 post)
  • Added API for changing all the changeable settings dynamically (file type, upload limits, etc)
  • Updated Classic Forms demo to use Server Data.
  • Updated Features demo to reflect API/feature changes
Notes:

The website has been updated. Get the latest greatest there. And as always let me know if you come across any bugs. A big thanks to all those who reported bugs in R6.

I've been concerned that people are downloading the Revisions and attempting to plop the demo code in to their own websites or apps. I strongly recommend against doing this. The Demo code is poorly designed, poorly test and is insecure. Furthermore, my PHP is very rusty and out of date.

The purpose of the demos is to give you working examples so you can see how things work since I haven't produced any documentation yet. But they are like the snippets from "Learn X in 21 days" books. They are there to get a particular point across but they do things wrong for the sake of simplicity.

As another disclaimer: I am an amatuer Flash/ActionScript developer and much of the code is derived from short examples taken from the LiveDocs. The code may be insecure and done wrong because I am guilty of using example code in to the Revisions.

So we are all getting what we pay for.

Tuesday, July 03, 2007

SWFUpload Revision 6 Release

Update 7-5-2007

A couple issues were found in Revision 6. The major one was another race condition that could occur in IE6. Hopefully these race condition bugs have finally been squashed. A few other issues were found but were not noticeable since they kind of canceled each other out.

I've posted updated Demos and Source code. I'm not updating the version number so if you downloaded a copy before today I recommend that you download the updated copy.

SWFUpload Revision 6 Release

I am pleased to announce the release of Revision 6 of SWFUpload. This version has been moved forward to ActionScript 3.0 and Flash Player 9 which gives us some power features what everyone has been waiting for.

What's new:
  • Code moved to ActionScript 3.0.
  • Flash Player 9 required.
  • Added ability to send custom POST values.
  • Added a fileValidation event that allows each file to be validated before upload.
  • The fileComplete event receives the output from the server.
  • File type (extension) is checked again in code since the file browser can be bypassed.
  • The file post variable name (aka Filedata) can now be changed.
  • Fixed a bug caused by canceling single files.
  • Removed the cookie sending feature. The post_params setting can be used.
  • Removed query_params. Use post_params instead.
  • Fixed another race condition that could prevent SWFUpload from loading on a page refresh.
  • Updated PHP and ASP.Net demos.
How to use it

See the demos and download Revision 6 at our generously hosted site (thanks again!). I have had some trouble with browsers/proxies caching some of the old JavaScript files. If it doesn't work make sure your caches are cleared.

My next project is to produce documentation for SWFUpload. I don't plan any new features (unless Flash Player 10 fixes/adds cool features) except bug fixes.

Don't forget to show your support to the original SWFUpload developers. We're grateful for their innovation and hard work