Mongrel error on read file after upload

I have a java client that uploads files to a web server. The problem is
that whenever the client uploads a file, and mongrel saves it in a
temporary file (in this case, mongrel13800-0), mongrel can't read the
file resulting in the error below.

Read error: #<Errno::EACCES: Permission denied -
/home/Jim/work/tmp/mongrel3800-0>

pastie link here: http://pastie.org/486246

i've resolved the problem by setting Mongrel::Const::MAX_BODY to 5MB,
but i don't really like that solution. And I have no control over the
size of the uploads.

i've tried chmod and chown but it doesn't solve the problem. any ideas?
thanks!

I have a java client that uploads files to a web server. The problem is
that whenever the client uploads a file, and mongrel saves it in a
temporary file (in this case, mongrel13800-0), mongrel can't read the
file resulting in the error below.

Does the java code run as a different user than your mongrel ?

Fred

Frederick Cheung wrote: