mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
php: convert after uploading only tagged formats
This commit is contained in:
Submodule web/documentserver-example/php/assets/document-formats updated: 6e38b17679...bf21acc766
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user