Jump to content

Recommended Posts

If you upload a file that ends in an image extension (.jpg, .gif, etc.) but isn't actually a valid image file, it spits errors:

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/tmp/phpqm7nzp' is not a valid JPEG file in /media/data/forumpix.co.uk/index.php on line 68

 

Warning: imagesx(): supplied argument is not a valid Image resource in /media/data/forumpix.co.uk/index.php on line 84

 

Warning: imagesy(): supplied argument is not a valid Image resource in /media/data/forumpix.co.uk/index.php on line 85

 

Warning: imagealphablending(): supplied argument is not a valid Image resource in /media/data/forumpix.co.uk/index.php on line 105

 

Warning: imagecopy(): supplied argument is not a valid Image resource in /media/data/forumpix.co.uk/index.php on line 110

 

Warning: imagejpeg(): supplied argument is not a valid Image resource in /media/data/forumpix.co.uk/index.php on line 122

Unable to write a new JPEG. Contact the administrator.

Warning: imagedestroy(): supplied argument is not a valid Image resource in /media/data/forumpix.co.uk/index.php on line 137

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.