fix: Upload avatar image error for s3 storage

This commit is contained in:
charlesgauthereau
2026-01-21 11:36:50 +01:00
parent 5fb6c7d36a
commit 4c0d68eab8
3 changed files with 5 additions and 82 deletions
+1
View File
@@ -64,6 +64,7 @@ export async function GET(
const result = await dispatchStorage(input, undefined, settings.storageChannel.id);
if (!result.file || !Buffer.isBuffer(result.file)) {
console.error(`An error occurred while getting file :`, result);
return NextResponse.json(
{error: "Invalid file payload"},
{status: 500}