File Input - accept attribute

web
mobile

Topic: File Input - accept attribute

Venky asked 4 months ago

Expected behavior

File Input should have an attribute accept which allows to take certain file types and if possible max file size.

Actual behavior

File Input doesn't even have the default accept attribute of input tag.

Resources (screenshots, code snippets etc.)

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file


Piotr Glejzer staff answered 4 months ago

Hi,

thank you for your suggestion. I added a task about that to improve this plugin. Have a nice day.

Best,
Piotr


Piotr Glejzer staff answered 4 months ago

Hi,

It's me again. I have a piece of sad information about that but we have a plugin that has those functionalities that you need. We will not improve the file input component. Have a nice day.

Best regards,
Piotr


Praditha Hidayat commented 3 days ago

Could you please tell us what plugin is it?

The accept attribute should be the basic attribute of the input file type.

Thanks


Piotr Glejzer staff commented a day ago

https://mdbootstrap.com/plugins/react/file-upload/ - check this.