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

robloach’s picture

Status: Active » Postponed (maintainer needs more info)

Would you mind posting a patch?

skilip’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

The Drupal 5 branch will not be longer supported