🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Increase file size limit to 500 MB
Edward Cui6f2f7bd1aa98
diff --git a/client/src/components/SiteSettings/ImportManager.tsx b/client/src/components/SiteSettings/ImportManager.tsxindex 1c0829522..dad9f3811 100644--- a/client/src/components/SiteSettings/ImportManager.tsx+++ b/client/src/components/SiteSettings/ImportManager.tsx@@ -35,7 +35,7 @@ interface ImportManagerProps {disabled: boolean;}-const MAX_FILE_SIZE = 100 * 1024 * 1024; // 100MB+const MAX_FILE_SIZE = IS_CLOUD ? 500 * 1024 * 1024 : Infinity; // 500 MB for cloud, infinite for self-hostedconst ALLOWED_FILE_TYPES = ["text/csv"];const ALLOWED_EXTENSIONS = [".csv"];const PLATFORMS = [{ value: "umami", label: "Umami" }] as const;@@ -126,8 +126,7 @@ export function ImportManager({ siteId, disabled }: ImportManagerProps) {const file = data.file[0];if (!file) return;- // Show confirmation dialog for large files- if (file.size > 50 * 1024 * 1024) {+ if (file.size > 100 * 1024 * 1024) {setShowConfirmDialog(true);} else {executeImport(data);diff --git a/server/src/index.ts b/server/src/index.tsindex 9716e1e75..e9d5dd2db 100644--- a/server/src/index.ts+++ b/server/src/index.ts@@ -165,7 +165,7 @@ server.register(cors, {server.register(multipart, {limits: {- fileSize: IS_CLOUD ? 100 * 1024 * 1024 : undefined, // 100 MB max file size, infinite for self-hosted+ fileSize: IS_CLOUD ? 500 * 1024 * 1024 : undefined, // 500 MB for cloud, infinite for self-hostedfiles: 1, // only allow 1 file},});