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 Quote Link to comment 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) Quote Link to comment Share on other sites More sharing options...
mostafatalebi Posted January 12, 2013 Author Share Posted January 12, 2013 Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.