How to replace no file chossen in input type=file with custom message?

Hi there

I want to replace input type=‘file’ “No File Choosen” message with some custom messages.

1 Like

That only appears in some browsers to start with - it is a part of the file input field those browsers use. Other browsers display something completely different. If you want the file input field to look the same in all browsers you need to overlay your own version over the top of whatever the browser uses. You can make your overlay look however you want ans so include a different message it that’s what you want.

See http://www.felgall.com/csfrm08.htm for the CSS and JavaScript required to 'replace whatever the native file input field looks like with your own version.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.