Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the default text in dropzone.js?

I'm having trouble changing the default text of my dropzone uploader. Despite the fact that I've initialized it like this, it's still rendering the default text:

Dropzone.options.imgUpload = {
    paramName: "file", // Must match the name of the HttpPostedFileBase argument that the Upload action expects.
    dictDefaultMessage: "Drag your image here",
    acceptedFiles: "image/*" // Accept images only
};

Also tried changing the dictDefaultMessage set in dropzone.js, but with no luck :( By the way; am I supposed to use both or remove one of them?

Any suggestions?

like image 943
Nicklas Pouey-Winger Avatar asked Nov 29 '13 14:11

Nicklas Pouey-Winger


1 Answers

Solved this by including the basic.css file alone. This does not render the sprites and you have full control of styling inside the dropzone (It just gives jo a basic skeleton to improve upon). When doing this, dictDefaultMessage is displayed.

like image 195
Nicklas Pouey-Winger Avatar answered Nov 03 '22 01:11

Nicklas Pouey-Winger