【问题标题】:Get filename in dropzone using jQuery使用 jQuery 在 dropzone 中获取文件名
【发布时间】:2016-05-15 10:02:42
【问题描述】:

伙计们,我这样尝试,我的问题是如何获取文件名或名称..?

 console.log(myDropzone.files);

【问题讨论】:

  • console.log(myDropzone.files[0].name);

标签: javascript jquery dropzone.js


【解决方案1】:

myDropzone.files 返回一个 File 对象数组。您可以使用索引访问特定的文件属性。

例如。

 console.log(myDropzone.files[1].name);//Getting second file name

【讨论】:

    【解决方案2】:

    转到 dropzone.js 并找到

    Dropzone.prototype._finished() 函数并提醒这一点

    responseText.success

    你会得到文件名

    【讨论】:

      猜你喜欢
      • 2015-08-18
      • 2015-06-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-26
      • 1970-01-01
      相关资源
      最近更新 更多