views:

286

answers:

1

Hi, 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!

A: 

Based on the docs on the project page it looks like you will need to use this code to get and 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.

patrickmcgraw