The AwsmUploader: Unlimited Uploads w/o Flash! (Loaders and Uploaders)

The AwsmUploader is the advancement to the renown FileDropper 2. It lets you easily upload files by drag-n-drop with blank JavaScript, HTML5 and PHP on the serverside (no Flash and no 3rd party plug-ins like jQuery are required).

View a fully working demo and the whole documentation here.

What’s so special about it then?

There are many answers to that question. The most awesome are:

  • Upload arbitrary many files of arbitrary size. The AwsmUploader was tested with 2 GB ISO -files. Works like a charm with low CPU usage. The AwsmUploader does not care about PHP ’s or other serverside limits.
  • You still can set a filesize limit or disallow the upload of certain files by supplying own regexes.
  • Upload by dragging files onto the element you specified as droppable area.
  • Extremely rich statistics per file/for all files: Speed meters (average and current speeds), balance time (eta), size and quota calculations in realtime, more exact than to the second.
  • More than 25 interceptable events allow for utmost details.
  • Supports quota management. Set a maximum upload size to let the AwsmUploader skip files before uploading them.
  • Uses the HTML5 -FileAPI to asynchronously and chunk-wise upload files. Upload to other domains using CORS -requests is supported as well.
  • Supports HTTP -401-challenged and preflighted requests: Use credentials to upload to protected areas.
  • Automatically renders and stores thumbnails of JPEG -, GIF – and PNG -pictures. Can display most imagetypes in the browser via Data-URLs by using the built-in class BinaryDataCollector.
  • You can adjust the chunk size to your needs and available bandwidth. The AwsmUploader can process as many files as you want it to in parallel.
  • Uses queues internally. You can pause and abort (even file-wise) at any time. Do not hesitate to keep on dropping files while the AwsmUploader is processing other files, it will take care of ;)
  • The AwsmUploader is a fully independent JavaScript class. It does not need any other libraries like jQuery, Mootools or Dojo.
  • A rich state management informs the user about every step in detail (current action, size of file, progress, states, realtime usages, number of files per queue etc.).
  • Rich error and response management, bind your very own callbacks to that.
  • Helper functions for formatting file names and -size strings.
  • Works nicely with the AwsmProgressBar.

That’s it?

Of course not. The AwsmUploader includes a lot more.

  • The nested class BinaryDataCollector allows to collect the data of dropped files. It was made to allow a preview of files (as Data-URL) in the browser when reading finished. The class is part of the AwsmUploader-namespace and can be used externally as well.
  • The nested class FeatureDetection easily allows to check for all needed features. This class also is part of the public namespace.
  • Two enumerations were nested as well. One is a list with all registrable event types, the other one is a list of available queue-types. They are used to register the correct handler for a specific event and to check the correct queue for details. The five queues are: Dropped, Pending (files that are reading or uploading at the moment), Completed, Aborted and Failed.
  • The private class AUFile represents one file that was formerly dropped onto the designated area. It has useful methods as well and is accessible to the outside and given as argument to certain callbacks. The AUFile has its counterpart implemented in PHP as well.
  • The AUFile consists of AUFileChunks. Each chunk has useful and detailed properties and its own XMLHttpRequest. It is accessible through its AUFile. There is a corresponding class in PHP as well.

What’s in the package and what do I need?

The package includes the stand-alone and fully independent JavaScript class AwsmUploader and its aforementioned nested classes and enumerations. Within the package you will find the PHP -classes (requires PHP 5 ) AUFile and AUFileChunk and a controller to handle those chunk-wise uploads. The package also includes a fully-implemented demo interface (similar to this one; with the AwsmProgressBar being replaced by a generic progressbar). The bundled implementation will work out of the box! You are not required to configure anything on the serverside (but there are some options you can adjust, of course).

As you see, the package being offered is rich and does not require you to implement and design your own interface, although the delivered interface is not part of the AwsmUploader (note that it uses jQuery/jQueryUI). You need little to no knowledge in JavaScript to make it work and only PHP 5 on your server. Modern browsers are supported, including Firefox 8+ and Chrome 16+. The Internet Explorer will fully support all native features in version 10, Opera only lacks support for the BlobBuilder right now. Therefore the AwsmUploader should be used to progressively enhance your upload interface, it is not meant to be a full substitute to your may existing solution.

Download The AwsmUploader: Unlimited Uploads w/o Flash! (Loaders and Uploaders)

Leave a Reply

Your email address will not be published. Required fields are marked *