Tags
Asked 3 years ago
5 Jul 2021
Views 639
Lorna

Lorna posted

How to change the button text of input type= file


<input type="file" />

shows button with text "Choose File"
i want to change as user select the language

How to change the button text of <input type="file" /> ?
david

david
answered Jul 5 '21 00:00

you cant change the "browse" or "Choose File" to any other text

but its default value from a browser so this text can be auto translated to the default browser language.

so suppose your operating system or browser have set language Japanese than it will show text accordingly
andy

andy
answered Jul 5 '21 00:00

you can need to use plugin instead of input type=file

like
1. fileuploader

$('input[name="files"]').fileuploader({
		limit: 20,
		maxSize: 50,
	});


you can change the button text to suitable name by custom javascript or template change
Post Answer