Help forum

how can i style the file uploader?

  • Vizualinx

    2 years ago

    i would love to to like design my own button and have an action on it that would open the file manager app.
    how can i do something like that?
  • needtheanswers

    2 years ago

    You can use the html attributes for this.
    You would give the actual file uploader an id of „example“ and the custom button the attribute „for“ „example“ . Last you can hide the actual file uploader because when you click on your custom button it triggers the file uploader
  • needtheanswers

    2 years ago

    oh but I forgot to mention, the custom button needs to be a label (tag label) for this to work
  • file uploader
    1302637230292205758-image.png
  • your custom button:
    1302637321761591349-image.png
  • needtheanswers

    2 years ago

    and with hide I mean display none, if you use show/hide it won´t work
  • Vizualinx

    2 years ago

    Thank you so much @needtheanswers . it worked!!
  • needtheanswers

    2 years ago

    You are welcome, happy to hear that 🙂
    ❤️1
  • Lucas G

    2 years ago

    @needtheanswers @Vizualinx just a heads up on this, the proper way to hide it is with something like:

    opacity: 0
    position: absolute
    z-index: -1
    👍2
  • Lucas G

    2 years ago

    Primary reason being accessibility
  • Also if you use the input in a form and you use display: none or visibility: hidden it will not submit properly
  • needtheanswers

    2 years ago

    Thanks for the correction 👍
    👍1