increase payload size?
ralyodio
HOBBYOP

4 months 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

dev
MODERATOR

4 months 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

4 months ago

Multipart it


ralyodio
HOBBYOP

4 months ago

huh?


samgordon
PRO

4 months ago

What web framework?


irazvan2745
FREE

4 months ago

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


irazvan2745
FREE

4 months ago

And you have to multipart it


ralyodio
HOBBYOP

4 months ago

sveltekit


ralyodio
HOBBYOP

4 months ago

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


samgordon
PRO

4 months ago

BODYSIZELIMIT variable, default is 512kb


samgordon
PRO

4 months ago

Assuming you’re using Node adapter



ralyodio
HOBBYOP

4 months ago

put this in .env?


samgordon
PRO

4 months ago

Railway variable


ralyodio
HOBBYOP

4 months ago

is this correct? BODYSIZELIMIT=2G


ralyodio
HOBBYOP

4 months ago

docs don't say how to specifyc gb


samgordon
PRO

4 months ago

Yep. And the docs do say.


samgordon
PRO

4 months ago

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


samgordon
PRO

4 months ago

Make it 2.2


ralyodio
HOBBYOP

4 months ago

shit how did i not see that! mandela effect.


ralyodio
HOBBYOP

4 months ago

thanks buddy


ralyodio
HOBBYOP

4 months ago

i had no idea it was a svelte issue


dev
MODERATOR

4 months ago

!s


Status changed to Solved dev 4 months ago


Loading...