I’m trying to style input type:file.
Problem I’ve encountered is that in Firefox I don’t see file path, while in IE it gives me full file path.
Any way to make these two browsers behave same way?
http://jsfiddle.net/sandrodz/yEG4w/
Thanks.
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.
No, this is a security feature of the browsers whereby the only information you get is the filename, and the file itself.
Strictly speaking, IE should not give you the full file path of the client machine as it can be used maliciously.
To get just the filename from IE, try this:
Example fiddle