File Input - accept attribute


Topic: File Input - accept attribute

Venky asked 5 years 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 5 years 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 5 years 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 5 years 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 5 years ago

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


FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Closed

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.25.0
  • Device: Any
  • Browser: Any
  • OS: Any
  • Provided sample code: No
  • Provided link: Yes