![](/img/trans.png)
[英]How to get the Uploaded file name in php if the file is uploaded by using ajax jquery file upload
[英]How to get the uploaded file name with jquery-filedrop?
任何熟悉jquery-filedrop的人 。 我想用jquery-filedrop獲取文件名。
在filedrop中如何獲取上傳的文件名? 因為我想在文件上傳后顯示名稱。
這是我的模板代碼
var template = '<div class="preview">'+
'<span class="imageHolder">'+
'<img />'+
'<span class="uploaded"></span>'+
'</span>'+
'<div class="progressHolder">'+
'<div class="progress"></div>+
'</div>'+
'<div class="name">'+file.name+'</div>'+
'</div>';
我使用file.name,但它不起作用。 控制台顯示:
未捕獲的ReferenceError:文件未定義
為什么?
謝謝!
嘗試
files[0].filename
根據上傳的文件數,索引將更改
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.