Esri / data-collection-ios

Mobile data collection app using the iOS Runtime SDK.
https://developers.arcgis.com/
Apache License 2.0
25 stars 26 forks source link

HEIC image attachments uploaded via iPhone improperly get a .jpg extension #184

Open mikewilburn opened 5 years ago

mikewilburn commented 5 years ago

Background

iPhones have a setting which permit camera photos from being saved either in high efficiency format (HEIC) or as a JPEG.

image (Note: HEIC is the file format name Apple has chosen for the HEIF standard)

If an HEIC image is chosen to be uploaded as an attachment, the app is falsely assigning it a .jpg extension.

Implications

This permits the otherwise unsupported attachment file type to be uploaded under the guise of a JPEG image, which can cause issues when these attachments are opened either on Windows or in a web browser. Windows, Chrome, and Safari have all proved unable to render this image type.

Repro steps

Note: Using a compatible Windows application that can access these attachments, this is the message that appears when trying to render image attachments: image