class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
The code is below. I notice that the $_FILES['binFile'][size] always returns 0 on files larger than about 750 to 800 Kb. but it is correct on files smaller.
I notice that the $_FILES['binFile'][size] always returns 0 on files larger than about 750 to 800 Kb. but it is correct on files smaller.
That leads me to think that there is a problem with your setup of PHP. The class only reads what is in $_FILES. If the information is not correct, it will assume that the upload is not good. In fact, if the size value is 0, it means that the upload wasn't successful, for some reason.
The code is below. I notice that the $_FILES['binFile'][size] always returns 0 on files larger than about 750 to 800 Kb. but it is correct on files smaller.
The php.ini settings are
My code:
Regards!
That leads me to think that there is a problem with your setup of PHP. The class only reads what is in $_FILES. If the information is not correct, it will assume that the upload is not good. In fact, if the size value is 0, it means that the upload wasn't successful, for some reason.
Does your code work on another server?