Include in file list even if upload_target_type is null

This commit is contained in:
Kijin Sung 2025-01-09 19:49:48 +09:00
parent 42b879d628
commit c17243e02a
7 changed files with 53 additions and 9 deletions

View file

@ -833,6 +833,21 @@ class FileController extends File
return $output;
}
/**
* Update upload target type
*
* @param int|array $file_srl
* @param string $upload_target_type
* @return BaseObject
*/
public function updateTargetType($file_srl, $upload_target_type)
{
$args = new stdClass;
$args->file_srl = $file_srl;
$args->upload_target_type = $upload_target_type;
return executeQuery('file.updateFileTargetType', $args);
}
/**
* Add an attachement
*