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

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

How to connect android app to App engine -

hadoop - Running Map Reduce Job shows error - Mkdirs failed to create /var/folders/ -