I'm trying to make an image upload website using Dropzone.js.
I need to change the image to a unique name but I can only change the display name or the name that the image saves.
This the code that I got now:
Dropzone.options.fileupload = {
paramName: "file", // The name that will be used to transfer the file
maxFilesize: 10, // MB
init: function() {
this.on('processingfile', function(file) {
file.name = 'test.jpg';
});
}
};