Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


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


Hi!

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.

FREE CONSULTATION

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

Status

Answered

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