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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -