[eluser]jayapalchandran[/eluser]
Hi, i tried to test the upload image of codeigniter by faking a jpeg file.
i created an empty file with a jpeg extension and uploaded it and i got the gollowing error.
A PHP Error was encountered
Severity: Notice
Message: getimagesize() [function.getimagesize]: Read error!
Filename: libraries/Upload.php
yet i got the error report in a variable stating
"The filetype you are attempting to upload is not allowed."
what if the users upload mistakenly an empty file and this error throws up... messing the appearance. ???
why cant it just say the error and not throw the image size error ???
This is a possible case where people could upload an empty file... aint it?
what you co developers suggest???