Ajaxian multi-file uploads

Over on StickBlog, there’s a nice little demo of using AJAX to provide a nice, clean interface for uploading multiple files in a web form. Only one file input is displayed at a time. As you add files, the input is replaced with information about the file, and a new file input is dynamically added. Simple and slick.

Stumble It!
Ajaxian multi-file uploads

Related posts:

  1. Dynamic Form Controls
    " Some time back, I was working on some code at work where we wanted to dynamically disable and re-enable certain form elements based on..."
  2. Old wine in a new bottle
    " The topic of Ajax is pretty hot right now. And some people are getting a little hot over the naming. As I pointed out..."
  3. The Lyceum Project: Another multi-blog WordPress implementation
    " This is quite interesting — the ibiblio folks have announced The Lyceum Project. This is a multi-blog version of WordPress, but it is a..."
  4. Don’t ever change
    " Okay, a few changes here. Removed the javascript that would automatically open links in new windows. Removed BlogSnob ad box. Removed the Blogdex metalinker..."
  5. PGPNotSoSimple.pm
    " I’ve been working on a project at work dealing with PGP. Basically, we receive some sensitive information from a business partner, and it needs..."
This entry was posted in Uncategorized and tagged , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

5 Comments

  1. Mathias mathibus.com
    Posted September 28, 2005 at 2:44 am | Permalink
  2. Andy andy.wordpress.com
    Posted September 28, 2005 at 1:50 pm | Permalink

    Dougal, I read that article yesterday and though his script does some nice DOM manipulation, it isn’t AJAX. The uploading is done by an HTML form post. This is just another case of buzzword misuse. :-/

  3. Dougal dougal.gunters.org
    Posted September 28, 2005 at 3:21 pm | Permalink

    Well, technically, no, it’s not AJAX (it’s not Asynchronous or XML). It’s more traditional DHTML. However, this demo accomplishes one of the same goals that typical AJAX use does — it manipulates the web page view without refreshing. Yes, yes, it’s still not AJAX, and people have been doing similar things for years. But I’m not inclined to be pedantic over the use of the AJAX label. ;)

  4. Posted November 6, 2005 at 1:01 pm | Permalink

    WTF is going on ?
    Why the heck are so many “gurus” calling it “Ajaxian” ???

    I’m no guru in Ajax/DHTML so I wasted a couple hours trying to find the AJAX in that neat solution. doh !

  5. Posted January 5, 2006 at 11:09 am | Permalink

    Well, it shouldn’t take you hours to understand the source, as it’s just using an iframe and a regular form post, took me 1 minute or so. It works…but I guess it doesn’t have any of the benefits of AJAX, i.e. the ability to deal with errors and stuff and it would be nice to be able to create a progress bar. This has been done though. If you do read a lot you’ll find that you can’t use the XMLHTTPRequest object anyways at all for file transfers. So, seeing that we are able to basically do AJAX requests for any other type of form element minus that one, we have to use iframe and eventhough this isn’t AJAX per se, it is using something else in order to get the same functionality.

2 Trackbacks

  1. [...] Hat Tip: geek ramblings [...]

  2. By Ajax Multi-Upload Utility - Habari on August 30, 2008 at 4:26 pm

    [...] StickBlog has written a great little Ajax-based file upload utility. You can set the number of files allowed at a time, and as you upload, the display is updated with the current files, which you can remove and replace at will.Now, if only I had the time to re-write the Attach Files plugin for WordPress by Gordon Knoppe to use this… THAT would be cool!Hat Tip: geek ramblings [...]

Post a Comment

Your email is never published nor shared.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting

  • Subscribe

  • Follow Me

    Twitter  Facebook  Flickr  Last.fm  LinkedIn  StumbleUpon  Technorati  Delicious  
    • icon
  • Referrals

    Sign up for Text Link Ads and earn money from your blog.
  • Lifestream