From 6fb781cb37cc23a8fbb3eae44e939d823d8be702 Mon Sep 17 00:00:00 2001 From: Tyki Date: Thu, 27 Mar 2025 21:31:16 +0100 Subject: [PATCH] feat(upload): add documentation for new setting --- docusaurus/docs/cms/plugins/upload.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docusaurus/docs/cms/plugins/upload.md b/docusaurus/docs/cms/plugins/upload.md index 23807ac66f..c9a9510d82 100644 --- a/docusaurus/docs/cms/plugins/upload.md +++ b/docusaurus/docs/cms/plugins/upload.md @@ -177,6 +177,31 @@ export default { +### Limit concurrent uploads + +By default, Strapi does not limit concurrent uploads into the media library. On low ram environments, you might face some Out Of Memory (OOM). This setting is dedicated to limit the concurrency of uploads to 1 to reduce the stress on the ram with sharp + + + + + +```js title="path: ./config/plugins.ts" + +export default { + // ... + upload: { + config: { + limitConcurrentUploads: true + } + } +}; +``` + + + + + + ### Upload request timeout By default, the value of `strapi.server.httpServer.requestTimeout` is set to 330 seconds. This includes uploads. To make it possible for users with slow internet connection to upload large files, it might be required to increase this timeout limit. The recommended way to do it is by setting the `http.serverOptions.requestTimeout` parameter in the `config/server.js|ts` file (see [server configuration](/cms/configurations/server).