Skip to content

Commit 44c24b5

Browse files
authored
Merge pull request #23 from visol/bugfix/mimetype-text-plain
fix: Add allowed mimeType text/plain
2 parents f71b3e5 + b2ae49c commit 44c24b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Controller/UserimportController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected function initializeUploadAction()
6262
// As Validators can contain state, do not inject them
6363
$mimeTypeValidator = GeneralUtility::makeInstance(MimeTypeValidator::class);
6464
$mimeTypeValidator->setOptions([
65-
'allowedMimeTypes' => ['text/csv', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'],
65+
'allowedMimeTypes' => ['text/plain', 'text/csv', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'],
6666
'ignoreFileExtensionCheck' => false,
6767
'notAllowedMessage' => 'Not allowed file type',
6868
'invalidExtensionMessage' => 'Invalid file extension',

0 commit comments

Comments
 (0)