MrFish Posted August 9, 2010 Share Posted August 9, 2010 When I use the "file" input type to get a file from my computer, it only shows the name of the file, not the full path. I'm using this code- <input id="initFile" type="text" value="No File Selected" /> <input id="initFileButton" type="file" value="" /> and javascript to update initFile. Currently in the js I just grab the "value" attribute and print it to the text input, but like I said, it's only the name. How can I fix this? Link to comment Share on other sites More sharing options...
Ingolme Posted August 9, 2010 Share Posted August 9, 2010 I believe it's a security measure the browsers have so that sites can't get information about the user's file system. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.