R
Railway

✋|help

Upload Files

Aavizvfx9/15/2023
Good morning, I have 4 gigabytes of image files, my application is connected to Git, and I can't upload the files there. How do I upload them directly to my application's upload folder without going through Git?

I also tried through the CLI, but when I run an Indexed
Compressed [====================] 100%
Failed
Failed to upload code with status code 413 Payload Too Large

My application is working fine; I just can't get the files into my upload folder.
Aavizvfx9/15/2023
N/A
Bbrody1929/15/2023
for media storage you would be much better off using bucket storage like cloudflare r2, or even a purpose built online media storage service like cloudinary
Aavizvfx9/15/2023
Very grateful for the feedback!
The application has already been developed, so I have the 4 gigabytes of files. I've already created the volume, and the code pointing to the volume is working perfectly. Now, I just need to put the 4 gigabytes into the volume. How do I do that? Please help me!
Bbrody1929/15/2023
all file access to the volume has to be done by the service it's attached to, so you can deploy this, upload your files to the volume then mount it's volume to your service, note
By default, the storage location is set to the storage subdirectory in the root of the volume, but by setting a service variable USE_VOLUME_ROOT to 1 you can opt to use the root of the volume as the storage location instead

https://railway.app/template/Nan7Bs
Aavizvfx9/15/2023
"Que maneira elegante de resolver esse problema, vocês são incríveis 🤩🤩🤩🤩🤩🤩🤩, parabéns de verdade! Estarei implementando!"
"What an elegant way to solve this problem, you guys are amazing 🤩🤩🤩🤩🤩🤩🤩, congratulations for real! I'll be implementing it!"
Do I have to manually include these variables in my application, or does it automatically communicate with my database?
Aavizvfx9/15/2023
Bbrody1929/15/2023
file browser does not use a postgres database, I'm not sure why you have those variables in that service
Aavizvfx9/15/2023
appeared automatically
"Is it because I created it within my project?"
"I thought I should create it inside, not outside of a project."
Bbrody1929/15/2023
correct, either way pay no attention to the uneeded postgres database variables
Aavizvfx9/15/2023
Should I create it outside?
Bbrody1929/15/2023
no inside is good
Aavizvfx9/15/2023
https://filebrowser-production-f8d0.up.railway.app/
It doesn't work, am I doing something wrong?
Bbrody1929/15/2023
check the deployment logs
Aavizvfx9/15/2023
yes, no volume attached, please attach a volume.

upon attaching a volume let this service rebuild
Bbrody1929/15/2023
so attach a volume
Aavizvfx9/15/2023
Bbrody1929/15/2023
attach a volume
Aavizvfx9/15/2023
I didn't understand why it made an error, investigating
Bbrody1929/15/2023
^
Aavizvfx9/15/2023
Yes, but since it's inside the project, I would attach it to the volume created within the project. So, I'll need to recreate the volume and my code.
Aavizvfx9/15/2023
Bbrody1929/15/2023
you can unmount the volume from your gestor service and attach it to the file browser service

Looking for more? Join the community!

Recommended Posts
Files on mounted volume not available after redeployI did a fresh deploy of @Brody 's Payload CMS template (https://github.com/brody192/payload-cms-tempCan't manually fill MySQLNone of the options i've tried works. I can still create dbs and populate them when connecting throuReferenced variables are emptyIf I hardcode the url in env variables, the deployment is successful, however using a reference to aSetup a monorepoHey guys, I'm using yarn workspaces and turborepo. I tried setting up the build command to "yarn turCan't start Remotion serverWhenever I try to use the Remotion server it cannot open the browser process and shows me this errorRecover a file inside a deploymentBy mistake I left a sqlite file inside a deployment and made a lot of updates to the database on thaDeployment Failed during build processI'm encountering issues while trying to build my Vue 3 and TypeScript project on Railway using NixpaBuild failing without errorMy build is failing to deploy without any error. Its just saying the container failed to start. The Cloudflare detected but not redirectingI've put the the right dns settings in cloudflare NS into godaddy. see screenshot which should poinFailed to authenticate to mongodbDeploying a MongoDB database from the UI, automatically creates a database named "test" if you connePrivate NPM Registry (GitHub)I'm using Yarn 3, GitHub Packages, and NodeJS. I am testing a deploy with `railway up` and when it gDjango advice neededHello good people, i would like to know how can i get some support for Railway? I started with a basUpdate TypebotHello, how i can update my project of typebot without lose all? i am new user in railwayWho deleted our database?I am writing to inquire about the recent deletion of the MySQL database in our account, we noticed Dockerbuild failes with no matching versionI attached the error and the dockerfile. The dockerfile locally runs withouth error but on railway ifailed opening connection to sql: default addr for networkHi, I am trying to deploy my golang web service which connects to mysql. I have added the mysql url Deploying Meilisearch template does not workI have a running project, If I click on new -> template -> Meili then a new service is created. HoweDeploy Flutter, error on buildHelp me! How do I deploy my flutter app on railway?Strapi crashes out of nowhereHello, my Strapi app sometimes crashes out of nowhere. This is not very good, because I have a prod Automatic Scaling not workingProject Id: 70ab406f-186f-40f7-ac61-c1a8dcb4bbb9 I am a user on the Hobby plan, the scaling on my p