feat(frontend): admin "Import from server" panel in Settings
deploy / deploy (push) Successful in 57s

Surfaces the previously UI-less POST /files/import: an admin-only Settings
card with an optional subfolder field, an Import button, and a result
summary (imported / skipped / per-file errors). Notes that imported files
are drained from the folder and that mtime is kept as the date when EXIF
is absent. Also documents the endpoint's drain + mtime behaviour in the
OpenAPI spec.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-11 18:23:22 +03:00
parent 1b04d67e20
commit 6e5c4dc623
2 changed files with 103 additions and 0 deletions
+6
View File
@@ -648,6 +648,12 @@ paths:
post:
tags: [Files]
summary: Import files from a server directory
description: >
Admin only. Ingests supported files from the server's configured import
directory (optionally a subfolder of it). Subdirectories are skipped and
not recursed. A successfully imported file is removed from the import
folder. For files without an EXIF date, the source file's modified time
is used as content_datetime.
requestBody:
required: true
content: