You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Если в форме создать поле: new fieldFile('file', [ 'title' => LANG_CP_WIDGETS_LFILE, 'options' => [ 'extensions' => 'csv' ] ])
И попытаться загрузить файл данного формата то будет ошибка: Файл имеет неподходящий формат. Допустимые типы файлов: csv.
Исправить можно заменив в system/config/mimetypes.php строку: 'csv' => 'text/plain', на 'csv' => 'text/csv'
The text was updated successfully, but these errors were encountered:
Используемая версия InstantCMS: последняя
Версия PHP: 8.1
Версия MySQL/MariaDB: 11.2
Если в форме создать поле:
new fieldFile('file', [ 'title' => LANG_CP_WIDGETS_LFILE, 'options' => [ 'extensions' => 'csv' ] ])
И попытаться загрузить файл данного формата то будет ошибка:
Файл имеет неподходящий формат. Допустимые типы файлов: csv
.Исправить можно заменив в
system/config/mimetypes.php
строку:'csv' => 'text/plain',
на'csv' => 'text/csv'
The text was updated successfully, but these errors were encountered: