KeHa priority asked 1 year ago

Expected behavior Hello, is it possible to add a translation for

Mateusz Lazaru staff answered 1 year ago

It's not possible since HTML native <input type='file' /> does not allow doing that neither, and in this form we do not change input's behavior, just add styling.

The text is translated by browser by default.

We have a file upload plugin in the MDB Pro Advanced package. The plugin has many config options such as default description, which could be used to customize/translate the text.

KeHa priority commented 1 year ago

On MDB4 you were customizing the file upload. I dont cant use the file upload plugin at this dialog.

Mateusz Lazaru staff commented 1 year ago

Unfortunately, there is no such option in MDB5.

I've prepared a snippet to help you achieve what you need:

This is an example of customizing the input-btn. If you also want to have input text translated, you would need to set it's visiblity to hidden or opacity to 0, and then create a custom message in its place.

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: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.2.0
  • Device: ThinkCentre
  • Browser: Firefox
  • OS: Win10
  • Provided sample code: No
  • Provided link: Yes