2

Further to the answer provided to this question regarding the appearance improvement of the file_field_tag, how can I replace the "Choose file" text with the filename after selection?

kouroubel
  • 260
  • 4
  • 18
  • Have you tried to get the value of the field input HTML tag? I am pretty certain it returns the file name (or an object containing it). – MrYoshiji Jan 14 '19 at 18:51
  • That would probably require some js code, right? I have no idea how to do it. – kouroubel Jan 14 '19 at 19:22

1 Answers1

0

Solved it using the method described here .

kouroubel
  • 260
  • 4
  • 18