Topic: Drag n Drop File Upload
gkennedy free asked 5 years ago
Hi there, how can I change the text "Drag and drop a file here or click" to something else in the Drag and Drop File Upload?
Thanks
Anna Morawska staff answered 5 years ago
Hi there,
you can set a custom text passing it as a message object while initiating the plugin
$('.file_upload').file_upload({
messages: {
'default': 'Custom message',
'replace': 'Custom message',
'remove': 'Custom message',
'error': 'Custom message'
}
});
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Resolved
Specification of the issue
- ForumUser: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.7.5
- Device: MacBook Pro (15-inch, 2017)
- Browser: Google Chrome V 73.0.3683.86
- OS: macOS Mojave Version 10.14.3
- Provided sample code: No
- Provided link: No
Tags
gkennedy free commented 5 years ago
It worked like a charm, thank you.