Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
After browsing a file from Local Hard Disk, it shows a full path of file Location. I require the full path, not only File Name (FileUpload1.FileName).

<asp:fileupload id="FileUpload1" runat="server" xmlns:asp="#unknown" />


i.e. "C:/Details.doc"

I can use this line also to get the full path ---

<input id="FileImageC" runat="server" atomicselection="true" class="buttonUpload"
                            name="FileImageC" onchange="ShowImageC(this.value);" style="width: 150px" tabindex="139"
                            type="file" />
Posted
Updated 25-Aug-10 8:28am
v3
Comments
[no name] 25-Aug-10 16:56pm    
Deeksha Shenoy: What was the point of the edit? You corrected word casings and italicized the path. Was it really necessary?

1 solution

The FileUpload control will only give you the filename as the path it comes from has no meaning when posted to the server.

What are you trying to accomplish?
 
Share this answer
 
v3
Comments
LebneizTech 25-Aug-10 8:36am    
Sir,

I Require Full Path.Is there any other control to get Full Path.
Dalek Dave 25-Aug-10 9:40am    
Good Call
[no name] 25-Aug-10 16:57pm    
Deeksha Shenoy: What was the point of the edit? The only thing you did was highlight the word FileUpload. Was it really necessary?

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