-
-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flysystem disks visibility #503
Comments
Sounds like instead we should set the permissions property of the system disk config to |
You mean like this, but for the system disk:
|
Adding this to
The problem with the But we could also just pass the |
I tried to replace |
Hmm, this is odd. The issue is happening on my server but not locally on Homestead. Server creates the directories with permissions 0700 and homestead creates them with 0755. I also tried changing Do you have idea what is causing the difference between local and the remote server @mjauvin? |
I don't know, could be the PHP user's umask maybe? Not sure. |
@bennothommo can you reproduce this as well? Any idea on how to properly fix this? |
Fixed by wintercms/storm@97588cb |
Winter CMS Build
Other (please specify below)
PHP Version
8.0
Database engine
MySQL/MariaDB
Plugins installed
No response
Issue description
Laravel\Illuminate\Filesystem\FilesystemManager
now useVisibility::PRIVATE
by default now when instanciating the LocalAdapter class.ref. https://github.com/laravel/framework/blob/9.x/src/Illuminate/Filesystem/FilesystemManager.php#L169-L174
So we need to pass
visibility => 'public'
to the Disk config if we want the files/folder created under that disk to be publicly accessible.The Image Resizer seems to be using the "local" disk in some parts of the code(folders/files creation) and the "system" disk in other parts (for mapping assets resources).
Steps to replicate
storage/app/resized
storage/app/resized
folder (and subfolders)Workaround
Add
'visibility' => 'public'
to the local disk definition.The text was updated successfully, but these errors were encountered: