从uploadify jquery插件中获取文件名 [英] get file names from uploadify jquery plugin

查看:307
本文介绍了从uploadify jquery插件中获取文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的第一篇文章



我在这里尝试获取上传文件的名称,以便用户可以根据需要删除它,和雅虎一样。



$(#uploadifysub1)。uploadify({
'uploader':'JS / uploadify。 swf',
'script':'JS / uploadify.php',
'deckyImg':'cancels.png',
'buttonImg':'attach.png',
'文件夹':'上传',
'queueID':'divquickuploadProgress1',
'auto':true,
'multi':true
});



问题是我无法获取文件名,有什么建议吗?



有没有uploadify中的函数,可以删除上传的文件,或者我必须自己做?



提前致谢。

解决方案

来自uploadify的报价


fileDataName




上传服务器脚本中的文件数组的名称。默认=
'Filedata'


PHP代码

  $ _ FILES [ 'Filedata上'] [ 'tmp_name的值']; 


that is my first post

I am trying here, to get the names of the files that are uploaded, so that the user can delete it if desired, the same way as yahoo.

$("#uploadifysub1").uploadify({ 'uploader' : 'JS/uploadify.swf', 'script' : 'JS/uploadify.php', 'cancelImg' : 'cancel.png', 'buttonImg' : 'attach.png', 'folder' : 'uploads', 'queueID' : 'divquickuploadProgress1', 'auto' : true, 'multi' : true });

the problem is that I cannot get files names, any suggestions?

is there any function in uploadify, that can remove an uploaded file, or I have to do that myself??

Thanks in advance.

解决方案

Quote from uploadify

fileDataName

The name of your files array in the upload server script. Default = ‘Filedata’

PHP code

$_FILES['Filedata']['tmp_name'];

这篇关于从uploadify jquery插件中获取文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆