A simple async upload using HTML5 file system and Drag and Drop API
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
views
.gitignore
.rbenv-version
Gemfile
Gemfile.lock
README.rdoc
app.rb
config.ru

README.rdoc

Async Upload App

Basic async upload using Filesystem API and Drag and Drop HTML5 API.

When starting an upload, it creates a temporary cache of the files, and returns an HTML with the cached path, so that it is not necessary to upload again when submitting the form.

Since we use a fake store file, we never store the original file, what is actually stored is a small gif. This turns possible to test in Heroku, without consuming storage.

Includes integration with Piecon (github.com/lipka/piecon) to show progress in favicon.

Getting Started

bundle install
rackup

TODO

  • upload in batches

  • remove uploaded file

  • when submitting a form, wait for all uploads to finish