Allow pre-setting upload_target_type for each editor

This commit is contained in:
Kijin Sung 2023-11-19 21:29:15 +09:00
parent fdc9e1e98d
commit 9a6524d63d
6 changed files with 27 additions and 6 deletions

View file

@ -1042,6 +1042,12 @@ class FileController extends File
}
}
// Set upload target type
if ($editor_sequence && isset($_SESSION['upload_info'][$editor_sequence]->upload_target_type))
{
$args->upload_target_type = strval($_SESSION['upload_info'][$editor_sequence]->upload_target_type);
}
$oDB = DB::getInstance();
$oDB->begin();