Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Plugin for Paperclip: Allows fetching attachments from remote locations
Ruby Logos
branch: master
Failed to load latest commit information.
lib Add a validation error when remote_url is unreachable
rails
spec Add a validation error when remote_url is unreachable
.gitignore
.rspec Bumped paperclip version
.travis.yml Bumped bundles. Prepare new release
Gemfile Updated for paperclip 2.4
Gemfile.lock Bumped bundles. Prepare new release
Gemfile.paperclip-3.4.x Bumped bundles. Prepare new release
LICENSE Initial commit
README.rdoc added build status
Rakefile Initial commit
paperclip-remote.gemspec Bumped bundles. Prepare new release

README.rdoc

Paperclip remote URL plugin

Build Status Allows fetching files/attachments from remote locations.

Installation

Just add gem paperclip-remote to your Gemfile.

Alternatively, run sudo gem install paperclip-remote and add require 'paperclip_remote' to your app.

Example

In the model, you can specify:

class User < ActiveRecord::Base
  has_attached_file :photo, :remote => true
  attr_accessible   :photo, :photo_remote_url
end

In the form you can then have:

<%= f.label :photo, "Please update a photo" %>
<%= f.file_field :photo %>
<br/>
<%= f.label :photo_remote_url, "or specify a URL" %>
<%= f.text_field :photo_remote_url %>
Something went wrong with that request. Please try again.