mostafatalebi Posted January 12, 2013 Share Posted January 12, 2013 Hello everybody I have a file input in my upload form. I have fully styled it so that the whole input (button+textField) is invisible and a stylish button is in place. I want to make a <p> or a <div> or anything else to put in that the path of the selected file. How can I approach this? thanks Link to comment https://forums.phpfreaks.com/topic/273065-getting-the-path-of-file-input/ Share on other sites More sharing options...
nogray Posted January 12, 2013 Share Posted January 12, 2013 You can just use the input field value. You will probably get "fakepath/" as the directory for security reasons. e.g. alert(document.getElementById('my_file_input_id').value) Link to comment https://forums.phpfreaks.com/topic/273065-getting-the-path-of-file-input/#findComment-1405210 Share on other sites More sharing options...
mostafatalebi Posted January 12, 2013 Author Share Posted January 12, 2013 Thanks Link to comment https://forums.phpfreaks.com/topic/273065-getting-the-path-of-file-input/#findComment-1405218 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.