Skip to content

Commit

Permalink
Исправление проблемы с загрузкой MSI
Browse files Browse the repository at this point in the history
Добавлен MIME тип MSI пакетов "application/x-msi" в список разрешенных.
По-пути, добавлены MIME для deb и dmg.
  • Loading branch information
lumian committed Feb 6, 2024
1 parent ca5b0a6 commit c876655
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion upload/application/config/aspia.php
Expand Up @@ -17,7 +17,7 @@
// Список поддерживаемых инсталляторов
$config['aspia']['support_os'] = array('windows'); // Доступные ОС, в формате массива
$config['aspia']['support_arch'] = array('x86', 'x86_64'); // Доступные архитектуры, в формате массива
$config['aspia']['support_extensions'] = 'msi'; // Доступные расширения файлов инсталляторов в формате: 'ext|ext|ext'
$config['aspia']['support_extensions'] = 'msi|deb|dmg'; // Доступные расширения файлов инсталляторов

// Флаг установленной системы (TRUE - установлена / FALSE - не установлена)
$config['aspia']['system_installed'] = FALSE;
4 changes: 3 additions & 1 deletion upload/application/config/mimes.php
Expand Up @@ -181,5 +181,7 @@
'odm' => 'application/vnd.oasis.opendocument.text-master',
'ott' => 'application/vnd.oasis.opendocument.text-template',
'oth' => 'application/vnd.oasis.opendocument.text-web',
'msi' => array('application/x-msdownload', 'application/cdfv2')
'msi' => array('application/x-msdownload', 'application/cdfv2', 'application/x-msi'),
'deb' => 'application/vnd.debian.binary-package',
'dmg' => 'application/x-apple-diskimage'
);

0 comments on commit c876655

Please sign in to comment.