binggle's avatar

StoreAs create folder with 700 permission.

Hi.

When I use StoreAs method for upload and saving file, it create sub folder with 700 permission.

But I need it to be created as 775 permission.

How can I change the default folder creation permission ?

0 likes
6 replies
Tray2's avatar

What permission do you have on the storage directory?

1 like
binggle's avatar

@Tray2

Always I use these command to give permission on local storage folder.

sudo chgrp -Rf www-data storage bootstrap/cache
sudo chmod -Rf 775 storage/ bootstrap/
1 like
binggle's avatar

@vincent15000 It is my config.

'disks' => [

    'local' => [
        'driver' => 'local',
        'root' => storage_path('app'),
        'throw' => false,
    ],

        ;
];

1 like
binggle's avatar

@Snapey

I have my ssh console access account 'myuserid', and I use nginx for web server.

So I use 775 permission on storage folder.

Nginx should write / upload files on storage folder.

Do I have to change how to set up laravel + nginx ?

Can you explain more in detail ?

1 like

Please or to participate in this conversation.