fix s3 adapter

This commit is contained in:
dswbx
2025-02-14 11:42:26 +01:00
parent 9c38c8f2ad
commit 24e69eec90
6 changed files with 16 additions and 25 deletions

View File

@@ -89,7 +89,8 @@ export class MediaController extends Controller {
);
}
return c.json(await this.getStorage().uploadFile(body, filename), HttpStatus.CREATED);
const res = await this.getStorage().uploadFile(body, filename);
return c.json(res, HttpStatus.CREATED);
});
// add upload file to entity