1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-10 07:06:45 +02:00

feat(helpers): fix upload helper

This commit is contained in:
Awilum
2021-08-22 15:14:43 +03:00
parent c4ef57716c
commit 322e88f3d5

View File

@@ -470,7 +470,7 @@ if (! function_exists('upload')) {
{
$settings = registry()->get('flextype.settings.upload');
$uploadFolder = strings(PATH['project'] . '/' . registry()->get('flextype.settings.upload.directory') . '/' . $folder . '/')->reduceSlashes()->toString();
$uploadFolder = strings(PATH['project'] . '/' . $settings['directory'] . '/' . $folder . '/')->reduceSlashes()->toString();
filesystem()->directory($uploadFolder)->ensureExists(0755, true);