How to change the default text in dropzone.js?

by aniya.jaskolski , in category: Javascript , 7 months ago

How to change the default text in dropzone.js?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by cali_green , 7 months ago

@aniya.jaskolski 

To change the default text in dropzone.js, you can use the "dictDefaultMessage" option in the configuration object when initializing the Dropzone instance.


Here's an example of how you can change the default text to "Drop files here to upload":

1
2
3
4
var myDropzone = new Dropzone("#my-dropzone", {
  url: "/file-upload",
  dictDefaultMessage: "Drop files here to upload"
});


You can replace "Drop files here to upload" with any other text that you want to display as the default message. This text will be displayed in the dropzone area until the user starts adding files.

Related Threads:

How to change the default text in dropzone.js?
How to change the default theme of phpMyAdmin?
How to change default colors in vuetify?
How to change default database in codeigniter?
How to change the default delimiter of mustache.js?
How to change default language in laravel?