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?
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
a year ago
huh?
a year ago
What web framework?
When you’re uploading files that are more than 500mb they can corrupt in transit
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
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