src/apis/StorageController.php
public function actionFilemanagerMoveFiles()
    {
        $this->checkRouteAccess(self::PERMISSION_ROUTE);
        
        $toFolderId = Yii::$app->request->post('toFolderId', 0);
        $fileIds = Yii::$app->request->post('fileIds', []);
        
        $currentPageId = Yii::$app->request->post('currentPageId', 0);
        $currentFolderId = Yii::$app->request->post('currentFolderId', 0);
        
        $response = Storage::moveFilesToFolder($fileIds, $toFolderId);
        $this->flushApiCache($currentFolderId, $currentPageId);
        $this->flushApiCache($toFolderId, $currentPageId);
        $this->flushHasCache($toFolderId, 0);
        return $response;
    }
public function actionFilemanagerMoveFiles()
    {
        $this->checkRouteAccess(self::PERMISSION_ROUTE);
        
        $toFolderId = Yii::$app->request->post('toFolderId', 0);
        $fileIds = Yii::$app->request->post('fileIds', []);
        
        $currentPageId = Yii::$app->request->post('currentPageId', 0);
        $currentFolderId = Yii::$app->request->post('currentFolderId', 0);
        
        $response = Storage::moveFilesToFolder($fileIds, $toFolderId);
        $this->flushApiCache($currentFolderId, $currentPageId);
        $this->flushApiCache($toFolderId, $currentPageId);
        $this->flushHasCache($toFolderId, 0);
        return $response;
    }
public function actionFilemanagerMoveFiles ( ) { $ this -> checkRouteAccess ( self :: PERMISSION_ROUTE ) ; $ toFolderId = Yii :: $ app -> request -> post ( 'toFolderId' , 0 ) ; $ fileIds = Yii :: $ app -> request -> post ( 'fileIds' , [ ] ) ; $ currentPageId = Yii :: $ app -> request -> post ( 'currentPageId' , 0 ) ; $ currentFolderId = Yii :: $ app -> request -> post ( 'currentFolderId' , 0 ) ; $ response = Storage :: moveFilesToFolder ( $ fileIds , $ toFolderId ) ; $ this -> flushApiCache ( $ currentFolderId , $ currentPageId ) ; $ this -> flushApiCache ( $ toFolderId , $ currentPageId ) ; $ this -> flushHasCache ( $ toFolderId , 0 ) ; return $ response ; }
Move files into another folder.

@return boolean
Move files into another folder .