Skip to content

The open alternative to Salesforce, designed for AI.

Fix workspace and profile picture upload (#13269)

Charles Bochet50bb30b0ab84
diff --git a/packages/twenty-server/src/main.ts b/packages/twenty-server/src/main.ts
index 31c598d9188..ae161bb3a2f 100644
--- a/packages/twenty-server/src/main.ts
+++ b/packages/twenty-server/src/main.ts
@@ -64,6 +64,14 @@ const bootstrap = async () => {
}),
);
+ app.use(
+ '/metadata',
+ graphqlUploadExpress({
+ maxFieldSize: bytes(settings.storage.maxFileSize),
+ maxFiles: 10,
+ }),
+ );
+
// Inject the server url in the frontend page
generateFrontConfig();