I use Uploadify with NextGen Gallery and to me it would be nice that.. when someone upload a Photo, like in publicuploader, he can put a text that will be aploaded with the photo, like a more info. For me is very important for find alla the photo uploaded from the same client i that moment.
Is it possible.. there some code to do that.. you can eplain to me how i can do?
There is a scriptData option which I used. I did the following, not sure if there is an easier way or not but it seems to work for me :)
#startupload is the id of my upload link, so when it's clicked I set the data sent as post with uploadify $("#startupload").click(function() { $('#file_data').uploadifySettings('scriptData', {'usertext' : $('#usertext').val(), 'usersomething' : $('#usersomething').val()}); });
With scriptData, data will be appended as query string to the url. In our case, there could be 100 images and user can give captions for those images. So, if we add this data to the scriptdata, then definitely there would querystring max lengh exception be occured.
Here, I had to concatinate all the captions to single string, because i was't able to set the scriptdata for each image( I mean to say, in uploadifyUpload())
If i could set script data in uploadifyUpload() function, then we can overcome this problem