Specify the public disk for creating directories

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2025-08-10 18:08:15 +01:00
parent ea84728a3f
commit a2217d7dbc

View File

@@ -74,7 +74,7 @@ class ImageUploadRequest extends Request
$type = class_basename(get_class($item));
if (is_null($path)) {
$path = Str::of(str_plural($type));
if ($type == 'AssetModel') {
@@ -88,8 +88,8 @@ class ImageUploadRequest extends Request
}
if (!Storage::exists($path)) {
Storage::makeDirectory($path);
if (!Storage::disk('public')->exists($path)) {
Storage::disk('public')->makeDirectory($path);
}
if ($this->offsetGet($form_fieldname) instanceof UploadedFile) {