413 Payload Too Large when uploading files from deployed frontend (works locally)
donalawa
FREEOP

2 months ago

Hi Railway team,

I’m encountering a 413 Payload Too Large error when uploading large files to my Railway backend only in production.

Details:

  • Backend hosted on Railway

  • Frontend works correctly from localhost → Railway backend with same files.

  • When frontend is deployed and hits the same Railway backend, file upload returns 413

  • Small requests work; only large file uploads fail

  • Backend logs show the request does not reach the application when uploading large files.

This makes me suspect a proxy or request body size limit on the Railway edge or runtime.

Could you please confirm:

  • Whether Railway enforces request/body size limits for incoming uploads

  • If so, what the current limits are and whether they’re configurable

Thanks in advance.

Best regards,
Awa

$10 Bounty

0 Replies

Loading...