josegonzalez/cakephp-upload — pull request #249 by davidyell (2014-08-28 17:00:20+00:00)
Title: Update UploadBehavior.php

When trying to upload an image with incorrect exif data this method will throw a warning. This is because it also validates the Exif data against the spec to make sure it's valid.

> exif_read_data() also validates EXIF data tags according to the EXIF specification (» http://exif.org/Exif2-2.PDF, page 20).

You'll get this warning.

> Warning (2): exif_read_data(main_vienna_6.jpg): Incorrect APP1 Exif Identifier Code [APP/Plugin/Upload/Model/Behavior/UploadBehavior.php, line 1502]

Images with invalid exif information are still uploaded though, so it doesn't have any functional impact. However if devs are logging errors this will fill up an error log pretty quickly.