79475819

Date: 2025-02-28 14:21:44
Score: 0.5
Natty:
Report link

After turning on throwing filesystem exceptions in Laravel config/filesystems.php, parameter throw => true

Chrome debugger showed that exception is was thrown after call to chmod(). GeeseFS documentation says that chmod is not supported. Big Problem.

However, I found that I can remove 'visibility' parameter in this config file config and problematic chmod() will not be called!

In GeeseFS access rights in are specified when you mount filesystem anyway.

'disks' => [

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

        'public' => [
            'driver' => 'local',
            'root' => storage_path('app/public'),
            'url' => env('APP_URL').'/storage',
            /*    'visibility' => 'public', // calls chmod() that does not work with GeeseFS. Access rights in GeeseFS are specified when you mount filesystem.*/
            'throw' => true,
        ],

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Nikolay kitsul