Take the 2-minute tour ×

I have weird issue,in ie7 the input type=file, the textbox can accept text entry unlike firefox, it automaticaly launch the file browser and in chrome you really have to click the Browse button to browse for a file to upload.


share|improve this question
Different browsers treat certain elements differently. For example Chrome allows textarea to be resized by default. Why do you need to allow text to be entered? And if you do, you could have a separate text box for this? –  Matthew Riches Jun 1 '12 at 7:35
Hi Matthew,the issue i am having now is that the user can type text on textbox of file input and suppose to be the user cannot do that.Is this a normal behavior of IE7 input type=file? or is this a bug? - thanks. –  Emmanuel Nollase Jun 1 '12 at 9:06
add comment

1 Answer

Earlier browsers often allowed the user to type a filename in the box in input type=file control, but nowadays it has become rare. This may relate to assumed security issues. But such input is not particularly useful, especially nowadays when people use descriptive long filenames.

So it’s normal. You should expect browsers to implement input type=file via a file selection window. But allowing text input there is not a bug, just an old feature; there is no specification on the details of implementation (and they need to vary, due to system differences).

share|improve this answer
add comment

Your Answer


