Headhunter
04-04-2003, 09:23 PM
I want to upload larger files to my webserver via $HTTP_POST_FILES.
If you download a file you get instantly the "progress information" from your webbrowser, e.g. 50kb from 320kb downloaded with average 3kb/sec.
Is there a way to integrate something similar for file uploads?
In PHP 4.2.0 a new element was introduced as part of the $HTTP_POST_FILES array which includes the specific error message returned should a file upload fail. Accessible as $HTTP_POST_FILES['file']['error'] it returns the following:
3: The file was only partially uploaded
So it seems to be possible to check a file for completion.
I want to integrate a status information like the normal download information from the webbrowser.
Sorry for my bad english :o
If you download a file you get instantly the "progress information" from your webbrowser, e.g. 50kb from 320kb downloaded with average 3kb/sec.
Is there a way to integrate something similar for file uploads?
In PHP 4.2.0 a new element was introduced as part of the $HTTP_POST_FILES array which includes the specific error message returned should a file upload fail. Accessible as $HTTP_POST_FILES['file']['error'] it returns the following:
3: The file was only partially uploaded
So it seems to be possible to check a file for completion.
I want to integrate a status information like the normal download information from the webbrowser.
Sorry for my bad english :o