413 Request entity too large (cloudflare)

ringo
PRO

a year ago

Hi, iam hosting a Server on Railway with Django and gunicorn. We are experiencing an issue, that occurs when submitting a form with files that get around 450mb. Is there a way to work around this? Or to edit the server settings that it is possible to upload those larger files? The error comes from cloudflare

0 Replies

ringo
PRO

a year ago

ca84b5fc-d0d5-420c-b5fb-5880fad9b350


ringo
PRO

a year ago

I saw that cloudlfare only supports up to 100MB on the free plan… any way to work around it?


a year ago

First, I would say it's unrelated to Railway.

Are you uploading to R2? where did you see the 100MB limit? https://developers.cloudflare.com/r2/platform/limits/#account-plan-limits



ringo
PRO

a year ago

We just make a POST request on our server and in this request we process the data and upload it to an S3 Bucket. I thought the cloudflare as our DNS server blocks the request


a year ago

I don't have any experiences with Cloudflare Tunnel, can't you upload to R2/S3 straight away without using the Tunnel?

Otherwise, this comment from your second link is the answer you are looking for "To work around, you can modify your code to upload large files in chunks each less than 100MB …."