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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user