$.ajax({
url: "index2.php?id=upload",
data: new FormData($("#form")[0]),
contentType: false,
cache: false,
processData:false,
beforeSend : function()
{
// how can I get src of image/size and its name?
},
success: function(data)
{
....
},
在顶级代码中,如何在beforeSend函数中通过jQuery获取src,size,name和mime类型的文件?
不重复! 它不适用于文件类型数组