Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi in my project for uploading a image i have given path in web.xml as
HTML
<context-param>
        <description>Location to store uploaded file</description>
        <param-name>file-upload</param-name>
        <param-value>
        C://temp
     </param-value>
    </context-param>
this runs in my system.

But when i host the site i need to give the path name of the directory from the server How can i give the path name in web.xml.I am using apache tomcat server and my site is http://anna05.s155.eatj.com/cloud1_1_1/[^] the admin login username and password is admin. When i try to upload it shows error path is not found i gave path as
Java
<context-param>
        <description>Location to store uploaded file</description>
        <param-name>file-upload</param-name>
        <param-value>
       <big> /image/</big>
     </param-value>
    </context-param>
the folder i have given is under cloud1_1_1. Anyone help me on this. But locally using the absolute path c:/temp it is working fine. if anyone don't understand my question give reply.thanks in advance
Posted
Updated 7-Jan-12 0:34am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900