Topic: Is it possible to change "Choose File" and "No file chosen" labels of MDBFile to any arbitrary string?

Sezai Yilmaz premium asked 2 years ago

Expected behavior

I am able to specify label for component. But there are two extra strings shown by MDBFile component; one is "Choose File" the other one ise "No file chosen". I expect 2 more attributes for MBDFile React component to change them to arbitrary string. Is it possible to change both of the label texts? How?

Actual behavior

MDBFile React component doesn't introduce any attribute to change both of the hard coded labels "Choose File" nor "No file chosen", neither.

Resources (screenshots, code snippets etc.)

enter image description here

Krzysztof Wilk staff answered 2 years ago


We do not provide such as feature because these two labels are predefined by a browser. The browser defines what text this button and input should have. We do not want to interfere in it - it can have an influence on cross-browser functionalities or won't work on older ones.

Keep coding!

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 2.3.0
  • Device: Macbook Pro
  • Browser: Google Chrome
  • OS: Mac OSX
  • Provided sample code: No
  • Provided link: No