fix: rewrite temp files with PutObject instead of SeaweedFS CopyObject

CopyObject returns InternalError 500 across buckets, so commits now Get+Put and ensure the documents bucket exists on startup.
This commit is contained in:
2026-08-15 03:33:55 +03:30
parent 877dfa65d5
commit 23edffba6a
3 changed files with 117 additions and 22 deletions
+5
View File
@@ -144,6 +144,11 @@
"en": "File is required.",
"fa": "ارسال فایل الزامی است."
},
"FILE_COMMIT_FAILED": {
"statusCode": 502,
"en": "Failed to store the uploaded file. Please try again.",
"fa": "ذخیره فایل آپلودشده ناموفق بود. لطفا دوباره تلاش کنید."
},
"SEED_LOCKED": {
"statusCode": 409,
"en": "Database seeding has already been completed and is locked.",