# Changing tmp directory where uploads are stored

**URL:** <https://www.ruby-forum.com/t/changing-tmp-directory-where-uploads-are-stored/65613>\
**Category:** Rails\
**Created:** [August 19, 2006, 8:06pm UTC](https://www.ruby-forum.com/t/changing-tmp-directory-where-uploads-are-stored/65613 "2006-08-19T20:06:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![will](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/90ced4/32.png) [@will](https://www.ruby-forum.com/u/will)\
**Post date:** [August 19, 2006, 8:06pm UTC](https://www.ruby-forum.com/t/changing-tmp-directory-where-uploads-are-stored/65613/1 "2006-08-19T20:06:06Z")

</div>

When you upload a file through a file field, during the upload the data  
is stored in a temporary file, /tmp/CGI[…]

The way my server is set up, there is not very much free space on the /  
partition, and in my app I would like to be able to upload large files.  
Is there any way that I can change the directory where this temporary  
data is being stored?

Is this somewhere in cgi.rb? I’m using mongrel\_rails 0.3.13.  
thanks,  
Will  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![will](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/90ced4/32.png) [@will](https://www.ruby-forum.com/u/will)\
**Post date:** [February 5, 2008, 4:09pm UTC](https://www.ruby-forum.com/t/changing-tmp-directory-where-uploads-are-stored/65613/2 "2008-02-05T16:09:57Z")

</div>

Will, I have a need to do this same thing, and found your post in the  
archive. Did you find a solution?

-Dan

On Aug 19 2006, 6:06 pm, Will [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
