Dropzone: how to rename after uploaded using success function?

Created on 7 Jun 2014  路  1Comment  路  Source: dropzone/dropzone

i wanna rename filename using server return value
this.on("success", function(file, Data) {
var aa = file.previewElement.querySelector("[data-dz-name]");
aa.dataset.dzName = Data;
console.log(file.name);
}

i have tried to change data-dz-name , it did. but file.name.
anyone can help?

Most helpful comment

You want to show the current name? Just set aa.innerHTML = Data;

>All comments

You want to show the current name? Just set aa.innerHTML = Data;

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bschmitt picture bschmitt  路  33Comments

CallMeBruce picture CallMeBruce  路  26Comments

claudiorivetti picture claudiorivetti  路  25Comments

tiagorz picture tiagorz  路  26Comments

lox picture lox  路  63Comments