Skip to content

andrew-carroll/volt-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Volt::Upload

Drop-in file upload support for Volt applications.

Installation

git clone git@github.com: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'

Usage

<: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.

TODO

  • Option to change default store model
  • Option to wait for submit button click before saving
  • Onchange event hook

Contributing

  1. Fork it ( http://github.com/[my-github-username]/volt-upload/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Drop-in file upload support for Volt applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published