temp upload files

2 views
Skip to first unread message

Andy Koch

unread,
Jul 22, 2009, 2:38:30 PM7/22/09
to Rack Development
Hi,

Question about temp files created when Apache/Passenger is receiving
uploaded files.

I noticed in /tmp there were many files like "RackMultipart2009....".
Some of them were quite old, over a month old.

I'm wondering why these stale upload files are still present in /tmp?

There seems to be some auto-cleaning happening, since there were many
more uploads than what was listed in /tmp.

I thought maybe they resulted from incomplete uploads, perhaps if the
client uploading stops mid-stream. But then we tried an upload and
the temp RackMultipart files were still in /tmp after the files had
been completely uploaded.

Also, is there a recommended way to remove these stale files? I can
do a cron job easy enough, but maybe there is a Passenger setting I'm
not aware of?

Thank you,
Reply all
Reply to author
Forward
0 new messages