How to set custom parameters when uploading dropzone?

problem description

use dropzone to upload pictures in development, and the backend needs to obtain the picture name.
requires two fields:

file:
imageName:

how to set, dropzone can be set: paramName:"file" , how to set the picture name?

Jan.01,2022

set the params configuration item, for example: params: {imageName: "name"}


DropZone will submit all hidden fields in the DropZone form. Therefore, this is an easy way to submit additional data. You can also use parameter options.

Menu