Skip to content

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

Attach fields to body

Edward Cui431e0eab81e8
diff --git a/server/src/index.ts b/server/src/index.ts
index 945e0c806..3ce36b8ea 100644
--- a/server/src/index.ts
+++ b/server/src/index.ts
@@ -153,6 +153,7 @@ server.register(cors, {
});
server.register(multipart, {
+ attachFieldsToBody: true,
limits: {
fileSize: IS_CLOUD ? 100 * 1024 * 1024 : undefined, // 100 MB max file size, infinite for self-hosted
files: 1, // only allow 1 file