carrierwave

https://github.com/carrierwaveuploader/carrierwave

Ruby

Classier solution for file uploads for Rails, Sinatra and other Ruby web frameworks

CarrierWave::Uploader::Download#download!

Caches the file by downloading it from the given URL.

=== Parameters

[url (String)] The URL where the remote file is stored

Source | Google | Stack overflow

Edit

git clone [email protected]:carrierwaveuploader/carrierwave.git

cd carrierwave

open lib/carrierwave/uploader/download.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-CarrierWave--Uploader--Download-download--for-pr


# Commit to git

git add lib/carrierwave/uploader/download.rbgit commit -m "better docs for CarrierWave::Uploader::Download#download!"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-CarrierWave--Uploader--Download-download--for-pr

hub pull-request


# Celebrate!