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


i wrote small web-application using grails. resulting war-file deployed on tomcat application server.

the app has upload functionality attachments. chose save uploaded files disk (rather storing blobs in db).

at first chose filepath inside webapp-dir store files, realized dir overwritten every deployment of new war-file.

is there best practice "where store uploaded files in local filesystem"?

thanks help.

alphaone, similar asking for, use apache webserver in front of tomcat. pick full path config file , write it. "/tmp/branding". pick url path location config file (say "myapp/branding") , use within our gsps. then, in apache, map app requests url ("myapp/branding") go directly file location, bypassing tomcat.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -