immich-go icon indicating copy to clipboard operation
immich-go copied to clipboard

how does it deal with duplicate?

Open mygsunny opened this issue 8 months ago • 4 comments

when it says "An asset with the same name exists on the server. No need to upload." is it only matching names? or does it match file size or other meta data?

│2025-06-04 17:09:28 INF server has same asset file=2020:2020/build desk/MVI_8725.MOV reason=An asset with the same name:"MVI_8725.MOV", │ │date:"2020-06-04 20:16:28" and size:4.0 GB exists on the server. No need to upload.

mygsunny avatar Jun 04 '25 21:06 mygsunny

Yes, same name, date and size.

simulot avatar Jun 07 '25 10:06 simulot

Yes, same name, date and size.

Thanks for clarification. I was also looking for the info in the documentation, but there the information seems to be missing.

Are there any plans to use hashes as well ? i.e. I have some files / scans from analog times which don't have a timestamp but same date. since separated in several batches by folder names also filenames could be the same across some folders. It seems some files are imported others not and some are replaced.

best workaround might be giving unique but fake DateTime in the files before importing or is a unique filenames already sufficient ?

chefkoch avatar Jun 09 '25 20:06 chefkoch

Thanks for clarification. I was also looking for the info in the documentation, but there the information seems to be missing.

Documentation is a difficult thing... apologizes

Are there any plans to use hashes as well ? It actually done. And file with known hash is discarded by Immich and Immich-go

Immich-go uses the name + date to track different versions of the same file with a different compression (due to Google's "Save storage feature"

simulot avatar Jun 12 '25 17:06 simulot

Yeah I have been wondering the same. Checking name and date and size are not necessarily a good idea, especially if you took photos with a non-phone camera. If you had multiple sessions in a single day and you erased your card (or used multiple cameras), then the images will all come out with the same size, date, and name. This really should be checked via hash.

snowe2010 avatar Nov 04 '25 16:11 snowe2010