Click here to Skip to main content
15,881,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello everyone

I want to set a default path for the file upload using jquery (the path is related to specify an image on the folder on my website, for example:" ~/Upload/userfolder/userimage.dcm")

When the user click on the browse button, the user just able to see own image folder

Thank you
Posted
Comments
Kornfeld Eliyahu Peter 8-Dec-14 3:55am    
Browse button of the file-uploader control shows fodler from the local (client) machine and has nothing to do with the path on the server, where files are stored...

1 solution

hi,

check this

<%=request.getContextPath()%>/Upload/userfolder/userimage.dcm

get server path from <%=request.getContextPath()%>

and then apend browse file path.
 
Share this answer
 
v2

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