via Ajaxian. I know that Valerio over at Mootools has a similar application that he has working in Mootools but hasn't released yet.

Lars Huring and team have created SWFUpload, a small JavaScript/Flash library that tries to re-make the way file uploads works on the internet.

It works by replacing the contents of a div with a small transparent flash that handles all the upload-frontend, javascript for configuration and callbacks and html/css for styling/looks.

This allows:

* Specify what filetypes are to be displayed in the upload dialog
* Upload multiple files using normal ctrl/shift-click to select multiple files
* Get file size and other info before upload starts and report that information back to the page.
* Style upload buttons any way we want using html/css and more...

It will degrade to a normal html upload input-field if flash/javascript isn't present.

JavaScript:
mmSWFUpload.init({
                upload_backend : "../../upload.php",
                button_image : "images/custom_button.png",
                button_mouseover_image : "images/custom_button_over.png",
                width : "258px",
                height : "82px",
                target : "SWFUpload",
                allowed_filetypes : "*.gif;*.jpg;*.png",
                upload_start_callback : 'uploadStart',
                upload_progress_callback : 'uploadProgress',
                upload_complete_callback : 'uploadComplete',
                upload_error_callback : 'uploadError',
                upload_cancel_callback : 'uploadCancel'
        });

drag to resize