hy guys I try like this, my quetion is how I can grab filename or name..?
hy伙计我这样试试,我的问题是如何抓取文件名或名字..?
console.log(myDropzone.files);
2 个解决方案
#1
1
myDropzone.files
returns an array of File objects. You could access specific file properties using index.
myDropzone.files返回一个File对象数组。您可以使用索引访问特定的文件属性。
Eg.
console.log(myDropzone.files[1].name);//Getting second file name
#2
1
Go to dropzone.js and find
去dropzone.js找到
Dropzone.prototype._finished() function and alert this
Dropzone.prototype._finished()函数并提醒它
responseText.success
you will get the file name
你会得到文件名
#1
1
myDropzone.files
returns an array of File objects. You could access specific file properties using index.
myDropzone.files返回一个File对象数组。您可以使用索引访问特定的文件属性。
Eg.
console.log(myDropzone.files[1].name);//Getting second file name
#2
1
Go to dropzone.js and find
去dropzone.js找到
Dropzone.prototype._finished() function and alert this
Dropzone.prototype._finished()函数并提醒它
responseText.success
you will get the file name
你会得到文件名