$maxsize = "200000";
$path = "/full/path/to/my/directory/";
if($uploads <= 1)
{
$uploads = 5;
}
$fields = $uploads + $uploads;
for($n = 0; $n < $uploads; $n++)
{
if($uploadedFile[$n] != "" && $uploadedFile[$n] != "none")
{
copy("$uploadedFile[$n]", "$path$uploadedFile_name[$n]");
rename("$path$uploadedFile_name[$n]", "$path$fileName[$n]");
if(file_exists("$path$fileName[$n]"))
{
print("upload successful for $fileName[$n] - $uploadedFile_size[$n] bytes
\n");
}
else
{
print("error: upload failed
\n");
}
}
}
print("\n");
?>