When uploading file in Vue2-Dropzone, default param name is "file". But I need to customize it as "upload".
I tried to change it using vdropzone-sending method. But It sends two params "file" and "upload".
Do I need to change backend to accept the param "file"? or Is there a way to customize default param name("file")?
<vue-dropzone v-on:vdropzone-sending="sendingEvent">
</vue-dropzone>
...
methods: {
sendingEvent (file, xhr, formData) {
formData.append('upload', file);
}
}