Phiras\’s Blog

April 21, 09

Ajax File Upload

Filed under: WEB-APP — Tags: — phiras @ 1:58 pm

Yes, XMLHttpRequest doesn’t allow sending multipart/form-data for security reasons.
People comes whit many alternative solutions to Ajaxifying their uploaders, using Flash( video uploader) or using iframes with javascript.

Maybe the iFrames solution is the most popular one, but for me, I don’t like iframes, maybe because they are making the work more complicated, and messy!

While I am working on project, I had to built fully ajax interface, and uploading files was one of the important things, and I had to go for the mess of iFrames.

Fortunately I find this amazing jQuery plugin : jQuery file uploader, this plugin encapsulates the dirty work of iFrames perfectly!

with jQuery file uploader it is a matter of 10 lines of javascript code to upload files.



Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at

%d bloggers like this: