1

So far I managed to make my upload button act like a file input but now I don't want the browse button anymore and unfortunately I don't know how to get rid of it.enter image description here

Any ideas?

shAkur
  • 944
  • 2
  • 21
  • 45
  • Not sure how this is set up. But try `display: none` – Serey Aug 01 '17 at 13:54
  • see if the browse button has a selector you can use - and display:none it. - else you can make a path selector to it, if you could show your html. – Stender Aug 01 '17 at 13:55
  • You could rename your brower button directly : https://stackoverflow.com/questions/1163667/how-to-rename-html-browse-button-of-an-input-type-file – zurricanjeep Aug 01 '17 at 14:00
  • https://postimg.org/image/5e4ujhj85/ Here is my html input – shAkur Aug 02 '17 at 07:21

1 Answers1

0

The best idea for fixing this would be to create a custom file input. This might seem painful at first but is the best way to have full control over your file input design.

Look at https://tympanus.net/codrops/2015/09/15/styling-customizing-file-inputs-smart-way/ for one of the ways to do this.

Another way involves an ugly work around that is widely used. The thread for the following is Hide the browse button on a input type=file