Little question: I’m trying to create a Form to upload a file.
Now i got a button to select the file and a submit button.
How can i design it like if i’ve selected a file, the path of it (C:\Users….) is shown in a textbox?`
Thx for help
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To copy the selected file name/path to different text box, first have this JS:
And it will work with such HTML:
Test case: http://jsfiddle.net/yahavbr/gP7Bz/
Note that modern browsers will hide the real full path showing something like
C:\fakepath\realname.txtso to show only the name (which is real) change to:(http://jsfiddle.net/yahavbr/gP7Bz/1/)