I just need to know if there's a way to change the message shown by the Asp:FileUpload
when no file as been selected.
Thanks.
I just need to know if there's a way to change the message shown by the Asp:FileUpload
when no file as been selected.
Thanks.
http://jsfiddle.net/Lsgbx5ne/1/
Improvements over other solutions:
This work in all browser
You replace the text with your own message using CSS pseduo-class
:after
. You can declare a class like this one:And assign it to your FileUpload control. The content message will replace the original one. Of course upon file selection you need to remove the message, you can do this for example via jQuery
.removeClass
(assuming ID of your FileUpload is "foo"):Demo: http://jsfiddle.net/5zhuL/2/
Note that this solution seems to work Webkit-browser's only (Chrome, Opera, Safari) you may need an alternative for others.
http://jsfiddle.net/ZDgRG/
See above link. I use css to hide the default text and use a label to show what I want:
html
css
javascript
Nope, not possible. This is the standard rendering in Chrome and cannot be changed.
Only add this CSS to your code. It simply hide the "No file chosen".