I am creating a website for a client, and he wants to be able to have in one page, many upload buttons. When he clicks select files, uploadify uploads the file to the server
I am not sure if the above answers cover uploadify elements that are added dynamically (through AJAX, after the page has been loaded). I faced this problem. Then while reading the "live()" function on the jQuery API, I realised it can be done this way:
$(document).ready(function(){
$('.upload_child_photograph').live('uploadifyEvent', function(){
var child_id = $(this).attr('id').replace('upload_child_photograph_', "");
$('#upload_child_photograph_' + child_id).uploadify({
'auto' : false,
'swf' : 'uploadify.swf',
'uploader' : 'uploadify.php',
'uploadLimit' : 10,
'multi': true,
'fileSizeLimit' : 0
});
});
$(".upload_child_photograph").trigger("uploadifyEvent");
});