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?

4
  • Not sure how this is set up. But try display: none Commented Aug 1, 2017 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. Commented Aug 1, 2017 at 13:55
  • You could rename your brower button directly : stackoverflow.com/questions/1163667/… Commented Aug 1, 2017 at 14:00
  • postimg.org/image/5e4ujhj85 Here is my html input Commented Aug 2, 2017 at 7:21

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.