java - Upload file in a location specified in tomcat server.xml conf -


i have upload form , save file in filesystem.

first, tried create path uploaded file saved:

file dest = new file("/front/uploads/images"); dest.mkdirs(); 

i specified context "front/uploads" in tomcat server.xml conf

<context path="/front/uploads" docbase="${htdocs}/uploads" reloadable="false" /> 

but mkdirs fails everytime.

what did wrong ?

thanks

ps: simplified bit


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

php - Dynamic url re-writing using htaccess -

java - Multi-Label Document Classification -