This is used for the b2b web tool. The user can upload an image file by clicking the "upload" button. There're 2 restrictions: max size and file formats.
What is the best way of showing that?
- Put a short general description under the upload button and open a tooltip on click or hover
- Same, but add the max file size to the button
- Place the list of all restrictions under the button (I would choose this option if there's not so many file formats)
accept
attribute on your<input type="file"/>
element be an option? I'm wondering if this, combined with option 1 or 2 would be sufficient. This would filter their options for them as well as provide the information before selection for those who are curious. If they specifically changed their file options to view "All files", then you could show an error after an invalid selection.