I am attempting to extract the value that is given from the "browse file" form element in HTML.
For example, when you use the "Browse File" form element, you get a string that contains the complete path where the file is located:
E:\Internet\webs\images\defaultpic.jpg
I would like to extract simply the file name, like such:
defaultpic.jpg
...and then have that value displayed in the "Browse File" form element's value.
Can this be done? If so, can someone show me how? I'm not that proficient in Java Script.
Thank you in advance.
For example, when you use the "Browse File" form element, you get a string that contains the complete path where the file is located:
E:\Internet\webs\images\defaultpic.jpg
I would like to extract simply the file name, like such:
defaultpic.jpg
...and then have that value displayed in the "Browse File" form element's value.
Can this be done? If so, can someone show me how? I'm not that proficient in Java Script.
Thank you in advance.
Comment