Upload Files
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.
23 Replies
Project ID:
N/A
N/A
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
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!
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
https://railway.app/template/Nan7Bs
"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?
file browser does not use a postgres database, I'm not sure why you have those variables in that service
appeared automatically
"Is it because I created it within my project?"
"I thought I should create it inside, not outside of a project."
correct, either way pay no attention to the uneeded postgres database variables
Should I create it outside?
no inside is good
https://filebrowser-production-f8d0.up.railway.app/
It doesn't work, am I doing something wrong?
check the deployment logs
yes, no volume attached, please attach a volume.
upon attaching a volume let this service rebuild
so attach a volume
attach a volume
I didn't understand why it made an error, investigating
^
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.
you can unmount the volume from your gestor service and attach it to the file browser service