# Multi-file upload and Mongrel problem - "Too many files open"

**URL:** <https://www.ruby-forum.com/t/multi-file-upload-and-mongrel-problem-too-many-files-open/180748>\
**Category:** Rails\
**Created:** [December 28, 2009, 1:08pm UTC](https://www.ruby-forum.com/t/multi-file-upload-and-mongrel-problem-too-many-files-open/180748 "2009-12-28T13:08:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MJFuzz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/48db29/32.png) [@MJFuzz](https://www.ruby-forum.com/u/MJFuzz)\
**Post date:** [December 28, 2009, 1:08pm UTC](https://www.ruby-forum.com/t/multi-file-upload-and-mongrel-problem-too-many-files-open/180748/1 "2009-12-28T13:08:02Z")

</div>

Hello all…

Wonder if someone can shed some light on this. I’m trying to implement  
a multi-file upload using a Java based uploader called  
“Aurigma” ([http://www.aurigma.com/Products/ImageUploader/](http://www.aurigma.com/Products/ImageUploader/)). Its a  
widely used component, you may have seen it on Facebook…etc. What the  
tool does is perform multiple file form posts to a hidden page. In the  
past I have successfully used this tool in PHP without any issues.  
However when trying to implement this with Ruby and Mongrel, I seem to  
be running into a “Too many files open” error when trying to upload  
more than 5 files. I know there are limitations with mongrel on its  
own. I have to assume once in production and Mongrel is being proxied  
via Apache, passenger…etc that maybe this will be less of an issue,  
but not sure. Before I start configuring apache to test that theory, I  
figured I post this issue here and see if anyone has had a similar  
issue.

Thanks…

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![MJFuzz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/48db29/32.png) [@MJFuzz](https://www.ruby-forum.com/u/MJFuzz)\
**Post date:** [December 28, 2009, 1:56pm UTC](https://www.ruby-forum.com/t/multi-file-upload-and-mongrel-problem-too-many-files-open/180748/2 "2009-12-28T13:56:17Z")

</div>

> I seem to be running into a “Too many files open” error when trying to upload  
> more than 5 files.

I might be writing nonsense but have you tried to modify the “pool: 5”  
to something else in the database.yml file?

Cheers.
