I am referring to this question: Mapping a directory outside the web-app to URL in TOMCAT
<Context path="/images" docBase="/usr/images/" />
I wonder how to achive this in the most secure way. So my questions are:
- where to put the folder for uploads
- which file permissions to give the folder and the files and who should be the owner
- how to make sure files can only be accessed via tomcat and not directly by users