HTTP 413 Content Too Large — how can I upload this file?

The request body is larger than a limit enforced along its path. Start with the payload size and the response that returned 413. A CDN, reverse proxy and application can impose separate limits, so changing one setting may leave the real limit in place.
Find the layer that rejected the upload and check its configuration for the route. Reduce the file when the workflow allows it, or use a chunked upload API if the server supports one. If you raise a limit, account for storage capacity and existing abuse controls.
Keep the multipart upload format the same while testing file sizes. Changing both the size and the encoding can move the failure to a different parser or limit, making the results hard to compare.
curl -i -X POST https://api.example.com/upload \ -F '[email protected]'
Try a small file and the failing file against the same upload route, then check which layer logged the 413.