Drop-in file upload support for Volt applications.
git clone [email protected]:andrew-carroll/volt-upload.git
Add this line to your application's Gemfile:
gem 'volt-upload', path: 'volt-upload'
And then execute:
$ bundle
Add this line to your component's dependencies.rb
file:
component 'upload'
<:upload:main />
Uploads are stored on store._uploads
by default. Access the data url of the most recent upload with either page._last_upload
or store._uploads.last._data
.
- Option to change default store model
- Option to wait for submit button click before saving
- Onchange event hook
- Fork it ( http://github.com/[my-github-username]/volt-upload/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request