Asynchronous File Upload
Bookmark and Share
 

Posted by Rahul in ,

For one of my current project, we wanted to have to support multiple file attachments in one of the forms. The first thing that came to my mind was how about doing it the GMail way. For me the GMail file attachment module functions the best way. I was sure that I could find some reusable component that I can quickly use. But to my disappointment or lack of (search) time or call it bad googling, I couldn't find something, in ColdFusion, that I could have used. Incidentally I found the Google Guide today to help me better my googling.

To my good luck I found an implementation in PHP, which I quickly (5 mins to be precise) implemented, that's where I love ColdFusion. The implementation is a simple yet intelligent use of (hidden) iframes and JavaScript.

Download it !!

6 comments

Awesome post! Nice and simple coding!

I've found that using SWFUpload (http://swfupload.mammon.se/) is even nicer, as the flash based file selection box allows multiple files to be selected at once, better control over what file types are in the file selection box, and upload progress as well. The file selection box is swf, and the entire rest of the interface is in javascript, making customization very easy.

Anonymous   says 9/22/2007 8:42 AM

Hey, very cool! Just what I was looking for -- this saved me the time of writing one myself!

One minor issue -- the upload.cfm file is missing it's closing body tag.

Thanks for the cool code!

Rahul, I would like to try your implementation. When I try to download it, I got an error. Please help me.
Humberto

Gabriel R   says 12/16/2008 4:08 AM

It would appear as though both the example and source files have been moved or deleted.

Fixed the broken download link. Also had to remove the Try it link as I no longer have a ColdFusion hosting available

Post a Comment

About Me

My Photo
Rahul Narula

Application Architect Webteam@Adobe

View my complete profile

Subscribe via email

Enter your email address:

Live Traffic Map

  Powered by Blogger

Twitter

Archives