Hey, Konstantin,
The file system allows me to write the bigger image if I just increase
the threshold size, though, so the file system is allowing the larger
images. That suggests to me that the exception is being thrown solely
when the image size exceeds the threshold size value. I read the
exception to mean something like "I can't write this tmp file because it
is bigger than the threshold size value", rather than "I can't write
this tmp file because the file system won't let me".
Paul
On 9/1/10 6:26 PM, Konstantin Kolinko wrote:
AFAIK, the said threshold determines when a file is too big to be hold
in memory and should be written to disk. So, I think that "Permission
denied" actually comes from your file system. You have to read the
docs (or the source code), but I guess that it tries to write to
${catalina.base}/temp (aka $CATALINA_TMPDIR, aka java.io.tmpdir ).
Best regards,
Konstantin Kolinko
2010/9/2 Paul Szynol<pj...@columbia.edu>:
Chris, I agree. "Exceeds threshold size" or something along those lines
would be a lot more helpful.
Paul
On 9/1/10 5:59 PM, Christopher Schultz wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul,
On 9/1/2010 5:28 PM, Paul Szynol wrote:
Increasing the value of .setSizeThreshold() did the trick. Thanks for
pointing me in that direction--I should have sent my question here about
12 hrs ago! :)
Strange that you get Permission Denied instead of some other exception.
If you are up-to-date on commons fileupload, you might suggest that they
change their error message to make it easier to understand why the error
is occurring.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkx+zNwACgkQ9CaO5/Lv0PAYrACfaKbXoZ47sADRvCuxYIcGbBC6
jJkAoISByEJPau4o78H43Q4yC2jCULjn
=DZ6s
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org