I’m using dropzone js successfully to upload files from a web page.
However, if a file gets uploaded that has the same name as a file already in the destination folder, it will overwrite the existing folder file.
I tried to remedy this by adding the js script function as shown below, but it didn’t work:
What the documentation says, is that renameFile is used instead which doesn’t receive the filename, but a file object instead that has different keys that contain different details about the file, including its name. Information about how to use that file object is found in the Dropzone usage documentation.