feat: update file upload size handling to use dynamic max size #96

This commit is contained in:
Linus Rath
2026-03-26 13:04:34 +01:00
parent 4ff2bff974
commit 4da1b7d8fc
2 changed files with 22 additions and 20 deletions
-2
View File
@@ -181,8 +181,6 @@ function isPreviewable(name: string): boolean {
return isImageFile(name) || isTextFile(name) || isPdfFile(name) || isAudioFile(name) || isVideoFile(name);
}
const MAX_FILE_SIZE = 500 * 1024 * 1024; // 500 MB
function getFileIconByName(name: string, size: "sm" | "lg") {
const cls = size === "sm" ? "w-5 h-5" : "w-10 h-10";
if (isVectorFile(name)) return <PenTool className={`${cls} text-orange-500`} />;