How to Resolve "413 Request Entity Too Large" Error in Spryker Yves Custom Form for File Uploads?
I have created a custom form with enctype="multipart/form-data"
in the Spryker Yves layer to upload and save files using an input of type file
. The files are saved to an AWS S3 bucket. When uploading files of 500 KB each in both inputs, the upload works correctly. However, attempting to upload files totaling 1 MB together (across both inputs) results in a 413 Request Entity Too Large error.
How can I resolve this issue so that users can upload files with a maximum combined size of 1 MB across both inputs?
Comments
-
Hi @gajendra.dubey108 ,
In the deployment YML file like deploy.dev.yml, you can modify max-request-body-size param's value like below to increase the file size limit :-max-request-body-size: 10M
Thanks
5
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 77 Spryker News
- 931 Developer Corner
- 789 Spryker Development
- 90 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 33 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random