SWFUpload“addPostParam”不起作用
我一直在测试这个上传脚本,它看起来非常好,但我只是无法让它发布我从输入中提取的值。一切看起来都不错,似乎我写的一切都正确,但它只是停止了 SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
, 我的一段代码导致了这些麻烦
.bind('uploadStart', 函数(事件, 文件){ $(this).addPostParam( “标题”、“asd”); })
我将它用作 jquery 插件,也许这就是问题所在?谢谢!
I've been testing this upload script and it looks really good, but i just can't get it to post values, that i have extracted from inputs. Everything is looking good and it seems I'm writing everything correctly but it just stops SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
,
there's my piece of code which causes these troubles
.bind('uploadStart', function(event,
file){ $(this).addPostParam(
"title", "asd"); })
I'm using it as jquery plugin, maybe that's the problem? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据项目页面上的文档,您似乎需要使用此代码来获取 SWFUpload 对象的实例以调用 addPostParam
我认为该事件处理程序内部的 this 引用引用了 SWFUpload 对象周围的 jQuery 包装器。
Based on the docs on the project page it looks like you will need to use this code to get an instance of the SWFUpload object to call addPostParam on
I think the this reference inside of that event handler refers to the jQuery wrapper around the SWFUpload object.