increase payload size?

a year ago

I couldn't upload a file for some reason, I guess it was too large, is there a way I can set maximum payload size to 2GB for my project?

Solved

22 Replies

a year ago

Railway doesnt actually have any size limits that I know of, I've uploaded and downloaded 50gb files before. It's likely a configuration with the server you're running


irazvan2745
FREE

a year ago

Multipart it


a year ago

huh?


a year ago

What web framework?


irazvan2745
FREE

a year ago

When you’re uploading files that are more than 500mb they can corrupt in transit


irazvan2745
FREE

a year ago

And you have to multipart it


a year ago

sveltekit


a year ago

yeah i'm using fetch how do i do it with fetch


a year ago

BODY_SIZE_LIMIT variable, default is 512kb


a year ago

Assuming you’re using Node adapter



a year ago

put this in .env?


a year ago

Railway variable


a year ago

is this correct? BODY_SIZE_LIMIT=2G


a year ago

docs don't say how to specifyc gb


a year ago

Yep. And the docs do say.


a year ago

And don’t use exactly 2G if you’re trying to send a 2G payload


a year ago

Make it 2.2


a year ago

shit how did i not see that! mandela effect.


a year ago

thanks buddy


a year ago

i had no idea it was a svelte issue


a year ago

!s


Status changed to Solved dev • about 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...