A
A
Andrey Demidenko2015-02-24 01:12:37
Ruby on Rails
Andrey Demidenko, 2015-02-24 01:12:37

How can I change the text on the button to select a file?

There is <%= file_field_tag ​​:file %>(select file). How to change the text on the select button and next to it if no file is selected?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Vsk, 2015-02-24
@Dem1

Browser policy prohibits manipulation of file inputs. To bypass, for example
, a trick is used when the input is made invisible, and an arbitrary field is superimposed on top of it, clicking on which causes the file-
input event there are older versions. Anyway, google file uploaders, rails file uploaders

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question