I got upload images with an HTML form and a PHP script successfully, is on the image validation where is my problem. I have an "is_uploaded_file" for validate that really it is a valid file, and later, if "is_uploaded_file" is true, I do the validation for the file type, image sizes....and works fine for validate the images.
Here is the problem:
My real local path to the image is: C:\images\for_web\products\image_1.jpg
Modified path for error test: C:\images\for_web\prod\image_1.jpg
When I write on the file control (HTML form) the modified path to the image and submit it, "is_uploaded_file" validate this true and later when come the "getimagesize" validation I get the follow error: "Warning: getimagesize() [function.getimagesize]: Read error!" I think because the temp file uploaded logically is not a valid image or is nothing.
How can I validate really the images that upload to the PHP temp directory?
or
How can I suppress or not show this Warning to the user. Without modify the PHP configuration?
Thanks in advance.