nextcloud / ios

📱 Nextcloud iOS App
https://itunes.apple.com/us/app/nextcloud/id1125420102
GNU General Public License v3.0
1.94k stars 876 forks source link

Unique Photo Identifier when using multiple iOS devices #1859

Closed ne20002 closed 6 months ago

ne20002 commented 2 years ago

I'm having a friend using my Nextcloud instance for uploading and storing photos when she is on holiday. She still uses iCloud Photo and she has two devices. With this combination, the following annoying behavior occurs:

Expected behaviour

Photos uploaded from iOs devices that has been synchronzied shall be detected and handled as the same photo.

Actual behaviour

Photos uploaded from iOs devices have different file names.

Filename is e.g. 21-12-05 16-05-10 AFGD.jpg where AFGD seems to be an id or counter on the device.

Reasoning or why should it be changed/implemented?

It would save space as photos may be uploaded twice, but overwritten, so not appearing twice on Nextcloud.

I wonder if there is an id in the photo roll or the meta data of the photos that could be used instead of a counter. iCloud photos itself must handle something similar so maybe we could also use that id for the filename?

A wonderfull solution would be something that could track uploaded photos on all connected devices so photos are not uploaded twice or an option to upload only photos taken on the device itself. Unsure if the information for that is available in iOS for a Non-Apple-App.

ne20002 commented 6 months ago

Looking Ingo the behaviour lately it seems as if this is now working as expected. So time for closing the issue.