I found the fix for this, so I'm including it below (not sure how to put in patches, this is my first post =)):
In swfupload.module:
Add back the following code to swfupload.module:
if (function_exists($name)) {
call_user_func_array($name, array('file', $file));
}
It was in a previous version using the term $callback. It should be put in the following code as follows:
...
$file->fid = $key;
$file->source = $key;
$file->list = variable_get('upload_list_default',1);
$_SESSION['file_previews'][$key] = $file;
// Store the uploaded fid for this page request in case of submit without
// preview or attach. See earlier notes.
$_SESSION['file_current_upload'] = $key;
//module_invoke_all('swfupload', $name, array('file' => $file));
if (function_exists($name)) {
call_user_func_array($name, array('file', $file));
}
}
// write to drupal session
sess_write($session_id, session_encode());
//global $user;
//$user = user_load(array('uid'=> $uid));
//print_r($_SESSION);
...
Now you will be able to call swf_generate('X') with your own callback function 'X' that will be called when a file is finished uploading.
Cheers,
Dave
Comments
Comment #1
robloachWould you mind posting a patch?
Comment #2
skilip commentedThe Drupal 5 branch will not be longer supported