mirror of
https://github.com/getgrav/grav.git
synced 2026-05-09 02:37:29 +02:00
Add media:// stream for site-level media directory
Registers a new media:// stream pointing to user://media, providing a dedicated writable stream for site-wide media files not tied to specific pages. Supports all file types (not just images like the existing image:// stream).
This commit is contained in:
@@ -140,6 +140,12 @@ class Setup extends Data
|
||||
'' => ['user://images', 'system://images']
|
||||
]
|
||||
],
|
||||
'media' => [
|
||||
'type' => 'Stream',
|
||||
'prefixes' => [
|
||||
'' => ['user://media']
|
||||
]
|
||||
],
|
||||
'page' => [
|
||||
'type' => 'ReadOnlyStream',
|
||||
'prefixes' => [
|
||||
|
||||
Reference in New Issue
Block a user