Skip to content

anuj-dhanju/discrete_upload_to

Repository files navigation

DiscreteUploadTo

Use any where and upload file with ajax. No need of any form.

Installation

Add this line to your application's Gemfile:

gem 'discrete_upload_to'

And then execute:

$ bundle

Or install it yourself as:

$ gem install discrete_upload_to

Usage

  1. function discrete_upload_success(url){

    }

    function discrete_upload_failure(){

    }

  2. <%= discrete_upload_tag :file, url, class%>

Contributing

  1. Fork it ( https://github.com/[my-github-username]/discrete_upload_to/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 a new Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages