# Problem using attachment\_fu with S3

**URL:** <https://www.ruby-forum.com/t/problem-using-attachment-fu-with-s3/187526>\
**Category:** Rails\
**Created:** [April 24, 2010, 8:57pm UTC](https://www.ruby-forum.com/t/problem-using-attachment-fu-with-s3/187526 "2010-04-24T20:57:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sshefer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d9b06d/32.png) [@sshefer](https://www.ruby-forum.com/u/sshefer)\
**Post date:** [April 24, 2010, 8:57pm UTC](https://www.ruby-forum.com/t/problem-using-attachment-fu-with-s3/187526/1 "2010-04-24T20:57:01Z")

</div>

Hi,

My S3 bucket is located in the US  
I have attachment\_fu working when using file system storage  
I have sw-swf upload plugin working with my S3 account  
but I can not get attachment\_fu to work with S3 storage.

the error I get is :  
AWS::S3::RequestTimeout in Upload filesController#create

Your socket connection to the server was not read from or written to  
within the timeout period. Idle connections will be closed.

hope someone can help out or pint me to an application that works.  
i have attached my db file.

in my model I have

has\_attachment :content\_type =\> :image, :storage =\> :s3, :size =\>  
0.megabyte…3.megabytes, :resize\_to =\> ‘450x450\>’, :thumbnails =\> {  
:thumb =\> ‘150x150\>’ }  
validates\_as\_attachment

my view new

# New upload\_file
\<%= error\_messages\_for :upload\_file %\> \<% form\_for(:upload\_file, :url =\> upload\_files\_path, :html =\> { :multipart =\> true }) do |form| %\> 

Upload a file: \<%= form.file\_field :uploaded\_data %\>

\<%= submit\_tag "Create" %\>

\<% end %\>

Thanks

---

<div class="post-metadata">

**Author:** ![sshefer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d9b06d/32.png) [@sshefer](https://www.ruby-forum.com/u/sshefer)\
**Post date:** [April 25, 2010, 3:18am UTC](https://www.ruby-forum.com/t/problem-using-attachment-fu-with-s3/187526/2 "2010-04-25T03:18:09Z")

</div>

I can’t see where problem is, but I could tell you - don’t you use  
attachment\_fu. Use paperclip. It so much faster and powerful.  
Just try it and I believe the problem will go away without time-eating  
solution.

---

<div class="post-metadata">

**Author:** ![sshefer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d9b06d/32.png) [@sshefer](https://www.ruby-forum.com/u/sshefer)\
**Post date:** [April 28, 2010, 12:59pm UTC](https://www.ruby-forum.com/t/problem-using-attachment-fu-with-s3/187526/3 "2010-04-28T12:59:37Z")

</div>

Vladimir R. wrote:

> I can’t see where problem is, but I could tell you - don’t you use  
> attachment\_fu. Use paperclip. It so much faster and powerful.  
> Just try it and I believe the problem will go away without time-eating  
> solution.

Thanks, i am using paperclip and yes it just works.
