mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
4987a8928f 파일이 변환된 때에만 original_type이 채워지도록 보완
This commit is contained in:
parent
4987a8928f
commit
223475a351
1 changed files with 2 additions and 2 deletions
|
|
@ -911,9 +911,9 @@ class fileController extends file
|
|||
$args->height = $file_info['height'];
|
||||
$args->duration = $file_info['duration'];
|
||||
|
||||
// Set original type if file type is changed
|
||||
// Set original type if the file is converted
|
||||
$args->original_type = null;
|
||||
if($file_info['converted'] || $args->mime_type !== $file_info['original_type'])
|
||||
if($file_info['converted'])
|
||||
{
|
||||
$args->original_type = $file_info['original_type'];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue