php: convert after uploading only tagged formats

This commit is contained in:
sshakndr
2023-11-07 12:43:05 +07:00
parent 34e60cd33f
commit e18d36f18d
3 changed files with 3 additions and 5 deletions

View File

@ -147,10 +147,7 @@ class FormatManager
$formats = $this->all();
$filtered = [];
foreach ($formats as $format) {
if ($format->type === 'cell' and in_array('xlsx', $format->convert) or
$format->type === 'slide' and in_array('pptx', $format->convert) or
$format->type === 'word' and in_array('docx', $format->convert)
) {
if (in_array('auto-convert', $format->actions)) {
$filtered[] = $format;
}
}