Commit a7a5460
authored
fix(local): create upload subdirectories as public (0755), not private (0700) (#489)
The Local adapter uses Flysystem v3's LocalFilesystemAdapter, which
defaults the directory visibility to PRIVATE. PRIVATE maps to 0700,
so each daily folder under public/assets/files (e.g. 2026-04-30/) is
created without group/other read/execute permissions, and uploaded
images cannot be served by the web server even though the file
itself is written 0644.
Pass a PortableVisibilityConverter with PUBLIC as the default
directory visibility so new daily folders are created 0755, matching
the v1.x behaviour and the expected 'images served, files protected'
posture.
Closes #488.
Signed-off-by: SAY-5 <say.apm35@gmail.com>1 parent f4234d1 commit a7a5460
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
168 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
169 | 174 | | |
170 | 175 | | |
171 | 176 | | |
| |||
0 commit comments