# Looking for S3 File Upload PlugIn

**URL:** <https://www.ruby-forum.com/t/looking-for-s3-file-upload-plugin/167942>\
**Category:** Rails\
**Created:** [May 14, 2009, 10:09am UTC](https://www.ruby-forum.com/t/looking-for-s3-file-upload-plugin/167942 "2009-05-14T10:09:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dacbo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Post date:** [May 14, 2009, 10:09am UTC](https://www.ruby-forum.com/t/looking-for-s3-file-upload-plugin/167942/1 "2009-05-14T10:09:04Z")

</div>

Hi there,  
I’m looking for a file upload plug in to load any kind of files up to an  
Amazon S3 bucket. But the access to the files should be restricted to  
authenticated users.

Any Suggestions?

Regards,

Chris

---

<div class="post-metadata">

**Author:** ![dacbo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Post date:** [May 14, 2009, 10:14am UTC](https://www.ruby-forum.com/t/looking-for-s3-file-upload-plugin/167942/2 "2009-05-14T10:14:01Z")

</div>

On Thu, May 14, 2009 at 10:09 AM, Chris B.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Chris

Paperclip

Andrew T.  
[http://ramblingsonrails.com](http://ramblingsonrails.com)  
[http://www.linkedin.com/in/andrewtimberlake](http://www.linkedin.com/in/andrewtimberlake)

“I have never let my schooling interfere with my education” - Mark Twain

---

<div class="post-metadata">

**Author:** ![dacbo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Post date:** [May 14, 2009, 10:21am UTC](https://www.ruby-forum.com/t/looking-for-s3-file-upload-plugin/167942/3 "2009-05-14T10:21:39Z")

</div>

On Thu, May 14, 2009 at 1:09 AM, Chris B.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> Chris

Chris, are you wanting to perform these actions as an admin user or a  
client  
of the  
site?

-Conrad

---

<div class="post-metadata">

**Author:** ![dacbo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Post date:** [May 14, 2009, 10:25am UTC](https://www.ruby-forum.com/t/looking-for-s3-file-upload-plugin/167942/4 "2009-05-14T10:25:25Z")

</div>

Hi Conrad,

the users should be able to upload/download files, but download only  
these they are authenticated to (like only files of group x).

afaik s3 buckets are either protected or public - so i’m not sure how to  
do this.

---

<div class="post-metadata">

**Author:** ![dacbo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Post date:** [May 14, 2009, 7:45pm UTC](https://www.ruby-forum.com/t/looking-for-s3-file-upload-plugin/167942/5 "2009-05-14T19:45:51Z")

</div>

## You use paperclip to handle file uploads, sending to s3, and storing the info in the database. The model that stores the image information should belong\_to a User, so that you can implement per-user access controls. Then when a file is to be downloaded, assuming the currently logged-in user can access the file, you render a time-limited (5 minutes or so) s3 URL so that user can download it without leaving the file wide open on s3.

Benjamin C.  
[http://railskits.com/](http://railskits.com/) - Ready-made Rails code  
[http://catchthebest.com/](http://catchthebest.com/) - Team-powered recruiting  
[http://www.bencurtis.com/](http://www.bencurtis.com/) - Personal blog

On Thu, May 14, 2009 at 1:25 AM, Chris B.
