Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Misc

Edward Cui9b3671a7a022
diff --git a/server/src/index.ts b/server/src/index.ts
index 9716e1e75..47058bcbf 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 ? 100 * 1024 * 1024 : Infinity, // 100 MB max file size, infinite for self-hosted
files: 1, // only allow 1 file
},
});