title: Grails and Tomcat: Where to store uploaded files in filesystem?
body: <p>I wrote a small Web-Application using Grails. The resulting war-file is deployed on a Tomcat application server.</p>
  
  <p>The app has an upload functionality for attachments. I chose to save the uploaded files to disk (rather than storing blobs in the DB).</p>
  
  <p>At first i chose a filepath inside the webapp-dir to store the files, but then i realized that this dir will be overwritten with every deployment of a new war-file.</p>
  
  <p>Is there a <strong>best practice</strong> for <em>"where to store uploaded files in your local filesystem"</em>?</p>
  
  <p>Thanks for your help.</p>