fix: stream FilePond uploads to S3 and proxy private file previews

Disk-based multer plus an authenticated content endpoint match the working Node.js uploader and avoid browser signed-URL failures on SeaweedFS.
This commit is contained in:
2026-08-15 18:46:26 +03:30
parent 7ebf9409f0
commit 1ef54ad414
9 changed files with 173 additions and 30 deletions
+10
View File
@@ -144,6 +144,16 @@
"en": "File is required.",
"fa": "ارسال فایل الزامی است."
},
"FILE_NOT_FOUND": {
"statusCode": 404,
"en": "The requested file was not found.",
"fa": "فایل مورد نظر یافت نشد."
},
"UNSUPPORTED_FILE_TYPE": {
"statusCode": 400,
"en": "This file type is not allowed. Use JPEG, PNG, WebP, GIF, or PDF.",
"fa": "این نوع فایل مجاز نیست. از JPEG، PNG، WebP، GIF یا PDF استفاده کنید."
},
"FILE_COMMIT_FAILED": {
"statusCode": 502,
"en": "Failed to store the uploaded file. Please try again.",