Topic: File Input - accept attribute

Venky free asked 4 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 4 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 free commented 3 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 3 years ago

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


Piotr Glejzer staff answered 4 years ago


Hi,

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

Best,
Piotr


FREE CONSULTATION

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

Status

Closed

Specification of the issue

  • ForumUser: 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