feat(metadata): review batch tag enrichment #511

This commit is contained in:
zarzet committed 2026-08-11 16:40:06 +07:00
1 parent 28538395c2
commit bec9e33c94
24 files changed
+1698 -265

No files matched your search

@@ -1514,7 +1514,9 @@ class MainActivity: FlutterFragmentActivity() {
val reqObj = JSONObject(requestJson)
val filePath = reqObj.optString("file_path", "")
if (filePath.startsWith("content://")) {
// Preview only resolves online metadata; it does not need
// a full SAF document copy and never writes the source.
if (filePath.startsWith("content://") && !reqObj.optBoolean("preview_only", false)) {
val uri = Uri.parse(filePath)
val tempPath = copyUriToTemp(uri)
?: return@withContext """{"error":"Failed to copy SAF file to temp"}"""