Use --skip-hash with least-privilege API key (CLI dup-check bug #21456)

This commit is contained in:
2026-08-07 21:09:36 +10:00
parent 493dab0212
commit 5f8d6ce9ad

View File

@@ -50,7 +50,9 @@ def immich_upload(src_dir: str, album: str | None = None, dry_run: bool = False)
Recursive, album-per-folder optional, dry-run supported. Immich dedups by checksum.
"""
cmd = [str(CLI), "upload", src_dir, "--recursive"]
cmd = [str(CLI), "upload", src_dir, "--recursive", "--skip-hash"]
# --skip-hash: with a least-privilege API key the CLI's dup-check is broken
# (immich-app issue #21456); our fingerprint DB does dedup pre-upload.
if album:
cmd += ["--album-name", album]
if dry_run: