Rails gem for handling qqfile uploader's ajax and hidden form uploads
Ruby JavaScript
Latest commit 62624f3 Sep 8, 2011 @bronzle assets generator
Permalink
Failed to load latest commit information.
lib
test
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE
README.rdoc
Rakefile
qqfileuploader.gemspec

README.rdoc

QQFileUploader

Ported from the PHP code at valums.com/ajax-upload/

Installation

In your Gemfile

gem "qqfileuploader"

Usage

In any action you wish to process a ajax upload, use this helper method

handle_upload(upload_dir, replace_file, options...)

It returns the a hash ready to be json-ified and returned back to the client. Optional arguments include:

:allow_extensions => [array of file extensions]
:size_limit => int, max file size (defaults to 10485760 bytes)