uploaders: allow deleting files by CID

This commit is contained in:
Alex Gleason
2023-09-08 15:01:30 -05:00
parent c40f10539d
commit 014b9f6d29
4 changed files with 66 additions and 28 deletions

View File

@@ -20,7 +20,7 @@ const mediaController: AppController = async (c) => {
try {
const { file } = result.data;
const { cid } = await s3Uploader(file);
const { cid } = await s3Uploader.upload(file);
return c.json({
id: cid,