Jaikiran Pai wrote:
chaitanya karthikk wrote:
What if I don't want to mention the temporary location?
It will default to the value that's set for the javax.servlet.context.tempdir context attribute, which is set by the server.
Which, in turn, is set by the JVM and can be overridding the "java.io.tmpdir" JVM system property. Been there, did that. This is for
Tomcat, mind you, but expect most
JEE servers to do likewise.
So your temporary file directory isn't set at the application level. Or strictly speaking, even at the server level. It's at the JVM level and can be set by the production operations staff to wherever is most suitable.
That's assuming that the standard java.io tempfile facilility is being used to allocate and create the tempfiles. Which most of the stock upload handlers will be using.