I don't seem to find an error in your code, or at least I haven't checked enough, but you might be on Win32 so you need to set binmode on the file you're writing:
binmode(OUTFILE);
on another subject, you might want to reduce the redundant variables $file, $filename, $file_handle to a single one maybe...
In reply to Re: Files are corrupted after uploading
by Chady
in thread Files are corrupted after uploading
by Kiko
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |