GPS Exif from iPhone photo upload in Safari

gpsphotossafari

Safari strips the GPS metadata from uploaded photos. Is there any way to stop this?

Visitors to my photo sharing website use a simple HTML form to select a photo from their phone:

<input accept="image/jpeg" type="file">

When iPhone & iPad users select a file it is uploaded without location EXIF. When Android, BlackBerry, and Windows Phone users do the same action in their browser, the EXIF data are passed correctly.

Is there any way for iPhone users to upload photos to a website using Safari and keep location metadata?

Best Answer

This is a privacy feature. iOS will always strip EXIF from uploaded photos.

It is correct that [iOS] strips exif data. This is also not a bug on [iOS] but actually a feature.

Image upload from iphone strips exif data - Stack Overflow

To access photo metadata, one needs to access the photo using an app installed on the device. To interact with Safari, this app can provide an app extension made available in Safari's share menu: Extending your App with Safari App Extensions - WWDC 2016.