jQuery.multiup plugin for multiple files

by Rob Martin on

Highly readable version

I'm a progressive. By this I mean I like things to get progressively more complicated. Don't you? Of course, I don't mean that things should be more complicated than they are — in fact, I think they should be at most only as complicated as they are. But they don't have to start off that complicated; they can get complicated progressively.

One example is file uploads. Sure, some of the time we only need to upload one file, and the way that HTML inputs (type=file) work is okay. But often, we need to upload more than 1 file. Maybe 10 of them. Maybe N of them.

So a progressive solution is to show one file uploader, but give the visitor the option to get another file. And another one. Right up until they've selected as many as you're willing to allow them to upload, or as many as they have.

I did a review on this, and found some options. Malsup[1] has a nice option for Ajaxifying forms, even does an Ajaxian-type thing for file uploads, but it doesn't let you build a package of files to upload. I found some nice stuff from the Stickman[2], but only in a MooTools dialect. Long story short, I wrote a plugin.

I guess that's significant. It is my first jQuery plugin. Feedback welcome, please.

Here is an example of the jQuery.multiup plugin in action. Source code hosted at GitHub.

Keep the progressive idea in mind. I hope to write something about progressive authentication systems eventually too.


  1. Malsup, of jQuery Cycle fame.

  2. The Stickman solved this problem with plain Javascript back in 2005, then again over the years in MooTools. But not, as far as I saw, in jQuery. So I was inspired to do that. Thank you, Stickman!

Talk back to me

You can comment below. Or tweet at me. I'm always open to a good conversation.