On Dec 3, 2:01 pm, Ken Collins <
k...@metaskills.net> wrote:
> I believe it all boils down to what the ENV['TMPDIR'] is there are others that are checked, but that is the first one examined in the ruby lib tmpdir and from what I have found conforms to standard unix $TMPDIR. So, to make any ruby code that wants to know what temporary directory to use, you should be able to either set that on the server and/or in some rails pre initializer or init file.
>
> - Ken
>
> On Dec 3, 2009, at 5:33 AM, shapeshed wrote:
>
> > I'm using Paperclip on mod_rails / Passenger to upload files of around
> > 100MB to a server. I'm getting errors because the tmp folder is
> > filling up. The capacity of /tmp is 485M so it is not surprising that
> > issues are arising.
>
> > When the file makes it to the server it seems that two copies of the
> > file are made, then removed once the transfer has taken place. If
> > concurrent uploads happen it obviously runs out of space.
>
> > I am wondering if anyone else has come accross this problem before and
> > whether there is an elegant way to solve it. I've tried to set
> > Passenger Temp Directory using this