I have an update form with some textfields and dropzone.js for uploading an image but the image should be optional. With the basis integration of dropzone the form won’t be submited unless at least one image is dropped. I have been googling almost all day but non of the mentioned sollutions seems to work at least not for me. The most mentioned way is:
if (myDropzone.getQueuedFiles().length > 0)
{
myDropzone.processQueue();
} else {
myDropzone.uploadFiles([]);
}
within the click function. But as you can guess for me it isn’t working Is someone familiar with Dropzone and know how to handle this? Thank you in advance.