Vue-dropzone: can't override the dictDefaultMessage

Created on 26 May 2017  路  2Comments  路  Source: rowanwins/vue-dropzone

i tried to use overide the default message "drop files here to upload" but it did not work, i thought i was not doing something right but then other dropzone properties set this way seem to be working fine. here is what i tried :

``` vue

and my data ln my component looks like this :


```vue
    data(){
          return {
             dropzoneConfig : {
                 dictDefaultMessage : "Click/drop Avatar",
             }
          }
        }

Most helpful comment

wow thanks so much @mcescalante it worked perfectly !!!

All 2 comments

I was just playing with the same thing - try adding this prop:

useCustomDropzoneOptions

So give this a shot:

<template>
  <div id="app">
      <dropzone useCustomDropzoneOptions :dropzoneOptions="dropzoneConfig" :maxNumberOfFiles="1" id="myVueDropzone" url="http://localhost/lasgidifx.com/public/user/11/edit" v-on:vdropzone-success="showSuccess">
          <!-- Optional parameters if any! -->
          <input type="hidden" name="token" value="xxx">
      </dropzone>
  </div>
</template>

wow thanks so much @mcescalante it worked perfectly !!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

estrica2000 picture estrica2000  路  5Comments

dainemedia picture dainemedia  路  4Comments

kyoukhana picture kyoukhana  路  5Comments

stevenhardy-digital picture stevenhardy-digital  路  4Comments

pdt590 picture pdt590  路  3Comments