Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Файл имеет неподходящий формат #1502

Open
ValenokPC opened this issue May 14, 2024 · 0 comments
Open

Файл имеет неподходящий формат #1502

ValenokPC opened this issue May 14, 2024 · 0 comments

Comments

@ValenokPC
Copy link
Contributor

ValenokPC commented May 14, 2024

Используемая версия 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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant