Monday, 20 March 2023

laravel upload file get Forbidden 403 file permission is 700 not 755

hello eveyone im using laravel and im uploading files to storage folder using this code

$request->file('file')[$key]->storeAs('public/'.$model[0].'/'.$data['id'],$name);

and ive already run this code

php artisan storage:link

in localhost everything working so good but when i upload it to cpanel i get this error

Forbidden
You don't have permission to access this resource.Server unable to read htaccess file, denying access to be safe

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

when i want to the folder i found the file uploaded with permission 700 not 755 with folder name $model[0] how can i fix this problem thanks



from laravel upload file get Forbidden 403 file permission is 700 not 755

No comments:

Post a Comment