+ 4
Html how to change the choose file
how can I change (choose file) when I use (input type="file"
9 Respostas
+ 2
to make really simple, even if it's a bit dirty using a one file solution :
<input type="file" id="getFile" style="display: hidden">
<button onclick="document.getElementById('getFile').click()"> Your Label Here </button>
+ 6
I think you can't do with standard input. unless some custom buttons and js. may be with bootstrap.
https://mdbootstrap.com/components/bootstrap-file-input/
+ 6
https://code.sololearn.com/Wfqu1gF9yngC/?ref=app
+ 4
🌴Vincent Berger🌴 this is not the question.
+ 3
<input type="file" accept="text/pdf" />
<input type="file" accept="application/exe" />
Additional you can add required to the end of the input tag, that makes the input mandotary before submitting
0
A simple hack exists by hiding your button with css, then, create another one, which contains the label you want. Next, affect to the onclick event of the button, the function click of your hidden element
0
how can I do it with css
can you give me example for it
0
thank for question
0
It's changed with me
thanks "roneel" and "xavier"