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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -