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.
bundle install rackup
-
upload in batches
-
remove uploaded file
-
when submitting a form, wait for all uploads to finish