# Backgroundrb & attachment\_fu

**URL:** <https://www.ruby-forum.com/t/backgroundrb-attachment-fu/120239>\
**Category:** Rails\
**Created:** [November 15, 2007, 3:01am UTC](https://www.ruby-forum.com/t/backgroundrb-attachment-fu/120239 "2007-11-15T03:01:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@jney](https://www.ruby-forum.com/u/jney)\
**Post date:** [November 15, 2007, 3:01am UTC](https://www.ruby-forum.com/t/backgroundrb-attachment-fu/120239/1 "2007-11-15T03:01:00Z")

</div>

Hi,

is it possible to handle attachment\_fu uploading files with  
backgroundrb ?

Regards

---

<div class="post-metadata">

**Author:** ![jney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@jney](https://www.ruby-forum.com/u/jney)\
**Post date:** [November 15, 2007, 5:34pm UTC](https://www.ruby-forum.com/t/backgroundrb-attachment-fu/120239/2 "2007-11-15T17:34:25Z")

</div>

thank you for answering. everything i hear about Merb sounds nice, but  
i’m not sure it is already production-ready…

---

<div class="post-metadata">

**Author:** ![jney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@jney](https://www.ruby-forum.com/u/jney)\
**Post date:** [November 15, 2007, 9:51am UTC](https://www.ruby-forum.com/t/backgroundrb-attachment-fu/120239/3 "2007-11-15T09:51:28Z")

</div>

On 15 Nov 2007, at 03:00, Jean-SÃ©bastien wrote:

> is it possible to handle attachment\_fu uploading files with  
> backgroundrb ?

No, you need Rails to hand over the Tempfile to backgroundrb once  
it’s done. Just to clear up things, the mongrel instance won’t be  
locked until the upload is complete, it’s the actual processing in  
Rails that locks the mongrel.

Now there is a very nice other solution out there that could probably  
be used to handle multithreaded file uploads with attachment\_fu  
processing and that is Merb ([http://merbivore.com/](http://merbivore.com/)). IIRC, there  
still are some comments in attachment\_fu that make it seem  
incompatible with Merb at the moment, but it shouldn’t be too much  
trouble actually getting it to work and then contributing the code  
back to technoweenie for everyone to benefit from it.

Best regards

Peter De Berdt
