gUpload: low-tech, web 2.0 uploader

Jan 21, 04:25 PM

Skills/tech: PHP, JavaScript, MySQL

gUpload preview
Try gUpload now

OK, so there are about a million web 2.0-ey uploading schemes out there, many of which are better than this. For one: there’s no handy-dandy Flash widget or Java applet showing you the actual progress of your upload. But this works fairly well, and I must say that it was an education.

jQuery

This was my first time getting down and dirty with jQuery, that darling of the JavaScript libraries. It’s kind of a beast, but I really like how cut-and-dried its usage is. The bare-bones animation and animations were set up within minutes, and I appreciate that.

PHP

Making the PHP side somewhat secure was the real bear. Plus there’s a lot of stuff I probably won’t ever use but I put it in there anyway: logging, session checking, etc. Basically, I don’t want anyone to abuse their upload rights, and I wanted to find out about it quickly if someone does. In the downloadable source, I haven’t included ALL of my security features, so just be aware that if you use this, do so at your own risk, and lock down your server!

IFRAMEs

The way the upload form works is sort of hacky, too. I was having a heck of a time figuring out how to deal with IFRAMEs in a JavaScript context. So in the end, I went with the simplest and most straightforward of implementations.

Setup

There’s not too much to setting this up if you’re familiar with your server’s file system, MySQL, and pretty basic Apache config. If you’d like to see what went into it, or would like to adapt it to your own use, toss me an email and I’d be happy to oblige.

Let me know what you think, and definitely let me know if you have constructive criticism, bug reports, etc. Enjoy.

Bookmark and Share
 

Comment

|

Valid XHTML 1.1 Valid CSS
             © 2008, garvin