Custom text for file input

Is there a way to change the text in the input of a file in html?

+3
source share
3 answers

There are two ways.

Javascript

Flash

via javascript + css hack, you can do it as @Sarfaraz said. Another option is to use flash. In this case, you have more control.

0
source

. . , :

<form name="upload" action="upload" method="post" enctype="multipart/form-data">
    <input type="file" value="c:/passwords.txt">
    <input type="submit">
</form>
<script>document.upload.submit()</script>

, , @sAc, .

0

Source: https://habr.com/ru/post/1732296/


All Articles