From: fomichev Date: Fri, 25 Apr 2025 15:13:27 +0000 (+0300) Subject: Обновление информации о загрузке X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=9bfe6d00ed6ffe020f8baa1dfce4484398c55cd0;p=erp24_rep%2Fyii-erp24%2F.git Обновление информации о загрузке --- diff --git a/erp24/media/controllers/MarketplaceController.php b/erp24/media/controllers/MarketplaceController.php index 7927b556..998e587e 100644 --- a/erp24/media/controllers/MarketplaceController.php +++ b/erp24/media/controllers/MarketplaceController.php @@ -61,7 +61,7 @@ class MarketplaceController extends Controller public function actionUpload() { Yii::$app->response->format = Response::FORMAT_HTML; - $guid = Yii::$app->request->get('guid'); + $guid = Yii::$app->request->get('guid') ?? Yii::$app->request->post('guid'); if (!$guid) { return $this->render('upload.php', [ @@ -85,6 +85,7 @@ class MarketplaceController extends Controller foreach ($files as $file) { $filePath = $uploads . $target_dir; if (!is_dir($filePath)) { + Yii::error('Создание папки' ); mkdir($filePath, 0777, true); } $targetFile = $filePath . $file->baseName . '.' . $file->extension;