I want to change default text on button that is "Choose File
" when we use input="file"
.
How can I do this? Also as you can see in image button is on left side of text. How can I put it on right side of text?
I want to change default text on button that is "Choose File
" when we use input="file"
.
How can I do this? Also as you can see in image button is on left side of text. How can I put it on right side of text?
This might help someone in the future, you can style the label for the input as you like and put anything you want inside it and hide the input with display none.
It works perfectly on cordova with iOS
I think this is what you want:
Here how you can do it:
jQuery:
css
HTML code:
Let me add a hack I used. I wanted to have a section that allowed you to drag and drop files, and I wanted that drag and drop section to be clickable along with the original upload button.
Here is how it looked like when I was done (minus the drag and drop ability, there are plenty of tutorials on how to do that).
And then I actually created a series of blog posts that are mainly about file upload buttons.
It is not possible. Otherwise you may need to use Silverlight or Flash upload control.
You can use this approach, it works even if a lot of files inputs.