Closed luannebe closed 2 years ago
Hi, I am attempting to enable users to upload a photo via the form. This line in the Controller:
$file->move(public_path('uploads'), $newfilename);
Triggers this error: [Unable to write in the "/var/www/e15/p3/public/uploads" directory.] Can anyone advise me what the proper ownership and permissions would be in order to make the directory safely writeable?
Nevermind :) This worked:
sudo chmod -R 755 /var/www/e15/p3/public/uploads chown www-data:www-data /var/www/e15/p3/public/uploads
Hi, I am attempting to enable users to upload a photo via the form. This line in the Controller:
Triggers this error: [Unable to write in the "/var/www/e15/p3/public/uploads" directory.] Can anyone advise me what the proper ownership and permissions would be in order to make the directory safely writeable?