# Attachment\_fu stopped uploading files to S3

**URL:** <https://www.ruby-forum.com/t/attachment-fu-stopped-uploading-files-to-s3/127946>\
**Category:** Rails\
**Created:** [February 2, 2008, 11:49pm UTC](https://www.ruby-forum.com/t/attachment-fu-stopped-uploading-files-to-s3/127946 "2008-02-02T23:49:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/41988e/32.png) [@rohit](https://www.ruby-forum.com/u/rohit)\
**Post date:** [February 2, 2008, 11:49pm UTC](https://www.ruby-forum.com/t/attachment-fu-stopped-uploading-files-to-s3/127946/1 "2008-02-02T23:49:31Z")

</div>

Hey everyone,

I’ve been using attachment\_fu to upload large media files to S3 with  
great success in my rails application. However, it has recently  
stopped uploading.

My app appears to be uploading to somewhere, as my browser is  
displaying a 'sending request to…" status message for about the  
right length of time. The records are also created in my application  
database. However, the files are never created in my S3 bucket.

I have enabled logging for my bucket, and have not seen any PUT  
requests for the appropriate files. I can successfully upload file  
manually using the ruby front-end s3sh. So this appears to be an  
issue related to attachment\_fu.

I run my app on Lighttpd and FCGI. I have recently killed and  
restarted my FCGI dispatch process, and noticed the problem started  
around that time. Might attachment\_fu be sensitive to that somehow?  
Or not at all?

Any insights would be appreciated! Thanks very much.

---

<div class="post-metadata">

**Author:** ![rohit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/41988e/32.png) [@rohit](https://www.ruby-forum.com/u/rohit)\
**Post date:** [February 4, 2008, 5:37am UTC](https://www.ruby-forum.com/t/attachment-fu-stopped-uploading-files-to-s3/127946/2 "2008-02-04T05:37:17Z")

</div>

I’ve solved this problem.

I’m not sure what caused the need for the change, but I had to adjust  
some custom hostname configuration logic I had implemented earlier in  
attachement\_fu’s s3\_backend.rb.
