Skip to content

feat(upload): add documentation for new setting #2445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions docusaurus/docs/cms/plugins/upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,31 @@ export default {

</Tabs>

### 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

<Tabs>

<TabItem value="typescript" label="TypeScript">

```js title="path: ./config/plugins.ts"

export default {
// ...
upload: {
config: {
limitConcurrentUploads: true
}
}
};
```

</TabItem>

</Tabs>


### 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).
Expand Down