Click here to Skip to main content
15,912,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
fileupload control code at design page

<asp:FileUpload ID="fileUploadImage" runat="server" ToolTip="Upload your image" />

var filename = $("#fileUploadImage").val();

At firefox return filename =tiger.png which is actual name of file

At chrome return filename =C: akepath iger.png which is wrong
So Plz help me to resolve this issue


Thanx Sheriff
Posted

1 solution

This is actually be design (and a cool feature).
Check this out about fakepath - http://davidwalsh.name/fakepath[^].
 
Share this answer
 
Comments
Sheriffff 19-Sep-15 5:09am    
Thank you dear its working

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