Topic: File Input
Expected behavior Hello, is it possible to add a translation for https://mdbootstrap.com/docs/standard/forms/file/.
mlazaru staff answered 2 years 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 pro premium priority commented 2 years ago
On MDB4 you were customizing the file upload. I dont cant use the file upload plugin at this dialog.
mlazaru staff commented 2 years ago
Unfortunately, there is no such option in MDB5.
I've prepared a snippet to help you achieve what you need: https://mdbootstrap.com/snippets/standard/mlazaru/5247554#css-tab-view
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.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- 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