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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -