Looks like you're loading the entire temp upload file into memory in order to save a copy? PHP is probably hitting the configured maximum memory limit for a script. Why don't you just use php's copy() function?
If it's still failing then try increasing the value of upload_max_filesize in php.ini
|