Grails and Tomcat: Where to store uploaded files in filesystem?

I would recommend using an environment variable to store the location, or better yet using an environment variable to set the location of your config properties file and setting a property there. That way the location becomes configurable by the operations team, who should be managing filesystem/configuration concerns.

AlphaOne, we do something similar to what you are asking for, but we use an Apache webserver in front of Tomcat. We pick up the full path from the config file and write to it. Say "/tmp/branding".

Then we also pick up the url path for this location from the config file (say "myapp/branding") and use this within our GSPs. Then, in Apache, we map app requests for that url ("myapp/branding") to go directly to the file location, bypassing Tomcat.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions