开发者

SWFUpload "addPostParam" doesn't work

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

开发者_如何学JAVA

.bind('uploadStart', function(event, file){ $(this).addPostParam( "title", "asd"); })

I'm using it as jquery plugin, maybe that's the problem? Thanks!


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

var swfu = $.swfupload.getInstance('.some-selector-for-your-control');

I think the this reference inside of that event handler refers to the jQuery wrapper around the SWFUpload object.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜