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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -