diff --git a/app/(protected)/admin/storage/loading.tsx b/app/(protected)/admin/storage/loading.tsx
index 1eab0dd..835c8cf 100644
--- a/app/(protected)/admin/storage/loading.tsx
+++ b/app/(protected)/admin/storage/loading.tsx
@@ -5,8 +5,8 @@ export default function DashboardRecordsLoading() {
return (
<>
diff --git a/app/(protected)/admin/system/s3-list.tsx b/app/(protected)/admin/system/s3-list.tsx
index f78f408..2e9dee0 100644
--- a/app/(protected)/admin/system/s3-list.tsx
+++ b/app/(protected)/admin/system/s3-list.tsx
@@ -3,7 +3,6 @@
import { useEffect, useMemo, useState, useTransition } from "react";
import Link from "next/link";
import { motion } from "framer-motion";
-import { CloudCog } from "lucide-react";
import { useTranslations } from "next-intl";
import { toast } from "sonner";
import useSWR from "swr";
@@ -63,7 +62,12 @@ export default function S3Configs({}: {}) {
channel: "cos",
},
{ label: "Ali OSS", value: "Ali OSS", platform: "ali", channel: "oss" },
- { label: "Minio", value: "Minio", platform: "minio", channel: "s3" },
+ {
+ label: "Custom Provider",
+ value: "Custom Provider",
+ platform: "custom",
+ channel: "cp",
+ },
];
useEffect(() => {
diff --git a/app/(protected)/dashboard/storage/loading.tsx b/app/(protected)/dashboard/storage/loading.tsx
index 1eab0dd..835c8cf 100644
--- a/app/(protected)/dashboard/storage/loading.tsx
+++ b/app/(protected)/dashboard/storage/loading.tsx
@@ -5,8 +5,8 @@ export default function DashboardRecordsLoading() {
return (
<>
diff --git a/app/api/storage/s3/files/route.ts b/app/api/storage/s3/files/route.ts
index 6408b67..0c4022d 100644
--- a/app/api/storage/s3/files/route.ts
+++ b/app/api/storage/s3/files/route.ts
@@ -162,6 +162,7 @@ export async function DELETE(request: NextRequest) {
await softDeleteUserFiles(ids);
return NextResponse.json({ message: "File deleted successfully" });
} catch (error) {
+ console.error("Error deleting file:", error);
return NextResponse.json("Error deleting file", { status: 500 });
}
}