Report this

What is the reason for this report?

413 Request Entity Too Large

Posted on May 29, 2022

I have Nest.js API which allow user to upload files. Everything is ok on localhost and i can upload big files to DO Spaces. I pushed app to App Platform and now i can’t upload files bigger than 500mb. Any ideas how to fix it?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

The App Platform has a default request timeout of 60 seconds, which may be causing your issue if the file upload takes longer than this. To resolve this issue, try uploading the file in smaller chunks, or implement a direct upload from the client to Spaces. This way, users can upload files directly without going through the App Platform, bypassing the request timeout limitation.

For more details on using Spaces with the App Platform, please refer to the DigitalOcean documentation: Configuring Components - Spaces.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.