Upload files to a nest Js App

wakedev
HOBBY

a year ago

Hi,

I have built an app to upload files to firebase storage using an nest js app. However when i post a file of 50mb i get an 413 error saying "entity too large". I seems to be a restriction in railway's load balancer config itself, because my backend api is configured correctly, locally the file is uploaded normally, and when i get this error I don't see any log in the service.

Is there a way i can change this setting?

1 Replies

a year ago

seems to be a restriction in railway's load balancer config itself

Just uploaded an 80MB file to my app that's hosted on Railway, it finished without issues, so this is not an issue or restriction with Railway. You can test this yourself by POST'ing a file to https://utilities.up.railway.app/upload

This would either be a misconfiguration with your app, or a limitation from firebase of some kind.


Upload files to a nest Js App - Railway Help Station