mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Allow filtering file list by upload target type
This commit is contained in:
parent
c0ddc46f46
commit
ef0ef45303
4 changed files with 23 additions and 6 deletions
|
|
@ -262,7 +262,7 @@ class EditorModel extends Editor
|
|||
$file_config->allowed_chunk_size = 0;
|
||||
}
|
||||
|
||||
Context::set('file_config',$file_config);
|
||||
Context::set('file_config', $file_config);
|
||||
|
||||
// Configure upload status such as file size
|
||||
$upload_status = FileModel::getUploadStatus();
|
||||
|
|
@ -293,7 +293,7 @@ class EditorModel extends Editor
|
|||
// Check if the file already exists
|
||||
if ($upload_target_srl)
|
||||
{
|
||||
$files_count = FileModel::getFilesCount($upload_target_srl);
|
||||
$files_count = FileModel::getFilesCount($upload_target_srl, $option->upload_target_type ?? null);
|
||||
}
|
||||
}
|
||||
Context::set('files_count', (int)$files_count);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue