fabrizim
24 Nov 2008, 2:15 PM
Hi All-
I needed to replace a panel I wrote that used swfupload since the changes that came with Flash 10. I decided to use Google Gears but wanted to ensure that users without Gears installed would be able to use the component without problems. After a few revisions, I ended up with an adapter type system that implements a couple abstract classes to create a standardized uploading system.
As of now, I have implemented gears and html (just a standard input type=file button). I might try to add an adapter for SWF uploads.
Google Code: http://code.google.com/p/ext-ux-uploader/
Demo Page: http://owlwatch.com/examples/extjs/ux/uploader/trunk/samples/index.php
Things I found out while developing:
Gear's ResourceStore object lets you store files that you access via the openFiles method and access them with an ad-hoc url. Check the sample for the "Gears Window with Image Preview".
Watch out for mod_security when using the Gear's upload technique. Right now, you can only submit a file as a blob stream via postData. That means that if you have mod_security enabled as part of your Apache setup, it will try to parse all of that data - which can bring your CPU to its knees for large chunks of data.
Anyway, If anyone wants to contribute any code or documentation, let me know.
Regards-
Mark
I needed to replace a panel I wrote that used swfupload since the changes that came with Flash 10. I decided to use Google Gears but wanted to ensure that users without Gears installed would be able to use the component without problems. After a few revisions, I ended up with an adapter type system that implements a couple abstract classes to create a standardized uploading system.
As of now, I have implemented gears and html (just a standard input type=file button). I might try to add an adapter for SWF uploads.
Google Code: http://code.google.com/p/ext-ux-uploader/
Demo Page: http://owlwatch.com/examples/extjs/ux/uploader/trunk/samples/index.php
Things I found out while developing:
Gear's ResourceStore object lets you store files that you access via the openFiles method and access them with an ad-hoc url. Check the sample for the "Gears Window with Image Preview".
Watch out for mod_security when using the Gear's upload technique. Right now, you can only submit a file as a blob stream via postData. That means that if you have mod_security enabled as part of your Apache setup, it will try to parse all of that data - which can bring your CPU to its knees for large chunks of data.
Anyway, If anyone wants to contribute any code or documentation, let me know.
Regards-
Mark