immich-app / immich

High performance self-hosted photo and video management solution.
https://immich.app
GNU Affero General Public License v3.0
52.65k stars 2.79k forks source link

Metadata inconsistencies when uploading files through web without proper EXIF information #14191

Open danieldietzler opened 1 week ago

danieldietzler commented 1 week ago

The bug

If the client has any filesystem metadata information about the time of a file it'll pass that to the server. However, those aren't actually persisted to a sidecar file (but written to the database), even if the file does not actually have any proper EXIF information. This results in Immich showing metadata the original file does not have, which is confusing.

Thus, that time should ideally be written to EXIF in a sidecar file to ensure the metadata between database and files on disk matches.

The OS that Immich Server is running on

N/A

Version of Immich Server

v1.120.2

Version of Immich Mobile App

N/A

Platform with the issue

Your docker-compose.yml content

N/A

Your .env content

N/A

Reproduction steps

N/A

Relevant log output

No response

Additional information

No response