Skip to content
This repository has been archived by the owner on Jul 17, 2018. It is now read-only.
/ paperclip_remote Public archive

Plugin for Paperclip: Allows fetching attachments from remote locations

License

Notifications You must be signed in to change notification settings

bsm/paperclip_remote

Repository files navigation

Paperclip remote URL plugin

<img src=“https://travis-ci.org/bsm/paperclip_remote.png?branch=master” alt=“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 %>

About

Plugin for Paperclip: Allows fetching attachments from remote locations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •