I just tried this in the get_form_data() routine above the magic quotes call and it seems to work fine..
foreach ($HTTP_POST_FILES as $file => $filearray ) {
foreach ($filearray as $filekey => $fileval) {
$data["$file"."_$filekey"] = $fileval;
}
}
and added $HTTP_POST_FILES to the globals so it would work.
I guess there might be compatibility issues with earlier versions of php that don't use $HTTP_POST_FILES?
R.