it's failing trying to create a folder. your parent folder must have executable permission to create a new folder, eg 755 on the public folder
Jun 20, 2021
6
Level 4
mkdir(): Permission denied", exception: "ErrorException",
I am working with the Vimeo API for upload videos directly from my server. Everything works fine on local development.
But on Production, It fails with a 500 error code, when I try to upload a video, here is the printed message on my network tab.
message: "mkdir(): Permission denied", exception: "ErrorException",…}
exception: "ErrorException"
file: "/var/www/stechmax.com/vendor/ankitpokhrel/tus-php/src/Cache/FileStore.php"
line: 88
message: "mkdir(): Permission denied"
trace: [{function: "handleError", class: "Illuminate\Foundation\Bootstrap\HandleExceptions", type: "->"},…]
I have tried
sudo chown -R www-data:www-data /var/www/stechmax.com/public
Also to note, I can upload other files including photos.
Thanks for your help
Please or to participate in this conversation.