javascript - Change image file name to unique using dropzone.js -


i'm trying make image upload website using dropzone.js.

i need change image unique name can change display name or name image saves.

this code got now:

dropzone.options.fileupload = { paramname: "file", // name used transfer file maxfilesize: 10, // mb  init: function() {     this.on('processingfile', function(file) {         file.name = 'test.jpg';     }); } }; 

there no clear way this.

uploading multiple files same file.name using dropzone.js

use processing event: (not working)

mydropone.on('processing', function(file) {   file.name = 'justin-bieber.jpg'; }); 

Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -