Upload files to project
boxesp
HOBBYOP

a year ago

Our portal is getting permission errors for not being able to upload images.

Is it true that Railway is a Read-only and it will not allow me to upload images?

20 Replies

boxesp
HOBBYOP

a year ago

4cd79685-3072-473f-84fb-5ac00fc61d8e


a year ago

that is not true, can you please provide specific errors


boxesp
HOBBYOP

a year ago

<br><b>Warning</b>: move_uploaded_file(/app/assets/websites/Elle(UK)_Gbd87pQaMAA33He.jfif): Failed to open stream: Permission denied in<b>/app/includes/productHandler.php</b> on line <b>132</b><br><br><b>Warning</b>: move_uploaded_file(): Unable to move "/tmp/phpUsUIlc"to"/app/assets/websites/Elle(UK)_Gbd87pQaMAA33He.jfif"in<b>/app/includes/productHandler.php</b> on line <b>132</b><br>{ "success": false, "message": "Failed to move uploaded file for logo." }


boxesp
HOBBYOP

a year ago

Forgot to reply to your message but here is the response we are getting.


a year ago

we are the only two people talking, theres no need to ping reply haha


boxesp
HOBBYOP

a year ago

My bad haha, not too familiar with discord threads.


a year ago

where is your volume mounted


boxesp
HOBBYOP

a year ago

What do you mean?

Sorry if I don't understand fully. We have spent the last few days moving from Digital Ocean to Railway, I have minimum understanding of development, our developers are off contract so it is just me and the other owners working with this.


a year ago

is this laravel?


boxesp
HOBBYOP

a year ago

We are not using a Volume right now, it is just simply our portal on github and our mysql.

Typically on our Linux VPS it was just uploading product images to the server and obviously to the db.


a year ago

is this laravel?


boxesp
HOBBYOP

a year ago

idk


a year ago

im sorry but it would be very hard for me to help you here if you can't help me


boxesp
HOBBYOP

a year ago

I understand that. I mentioned above that I am not a developer myself and someone that has a final product of what I contracted developers to do.

It is a whole PHP portal / website.

As I mentioned I am moving away from a Linux VPS and wanting to try Railway.

I just checked the code and I cannot see anything related to "Laravel"


a year ago

try switching from nixpacks to railpack

1346578975773950000


boxesp
HOBBYOP

a year ago

Getting a DB error after changing to Railpack.

Fatal error: Uncaught PDOException: could not find driver in /app/includes/db.conf.php:50 Stack trace: #0 /app/includes/db.conf.php(50): PDO->construct('mysql:host=mysq…', 'root', Object(SensitiveParameterValue)) #1 /app/includes/db.conf.php(92): dbHandler->construct() #2 /app/includes/functions.php(9): requireonce('/app/includes/d…') #3 /app/index.php(3): requireonce('/app/includes/f…') #4 {main} thrown in /app/includes/db.conf.php on line 50

Why would that be? Doesn't look like the code has changed at all.


a year ago

it's a completely different builder and likely didn't include a db driver


a year ago

change back to nixpacks, and write files to /app/storage instead, I think that's a write-able path


boxesp
HOBBYOP

a year ago

Will give the below suggestion a try.

Is this something that will change in the future and include db drivers? I saw that you are moving away from Nix.


a year ago

yeah railpack is still beta


Loading...