There is a service for uploading large files (more than 500MB) with php/apache. The progress of upload is tracked by the `uploadprogress` pecl extension.
This scheme works fine only for small file uploads.

However, there is a problem when uploading large files. Once the upload is finished, there is a standard information in the $\_FILES array showing there are no errors. The problem is that the /tmp/phpXXXX file itself doesn't exist by this time.

I've tested that if we manually remove the tmp file during the upload, upload process will not stop and the error will be raised only after the upload is finished.

Hosting provider says that there are no maintenance scripts that are removing tmp files. Also it says that such tmp files are available in the filesystem almost until the end of the upload, and then they disappear.

Could it be caused by the apache/server/php configuration? Is there anything in the OS that may affect these tmp files?

OS is Ubuntu 8 LTS

Any help would be appreciated!