Littlegolden Well, I have 0.8.3, but looking at Git i can see
[...]
$uploadFileData = $this->mimeDetector->getFileType();
if ($uploadFileData['mime'] === null) {
[...]
so actually the developers suppose that your sever is able to provide correct MIME type for the uploaded file. And this is definitely not the case for your .txt
file.
The whole code segment has been completely refactored in the current Git head.
I would try to patch the code by explicitly forcing $uploadFileData['mime'] = null
if it has not been defined, i.e. adding
$uploadFileData = $this->mimeDetector->getFileType();
// Add this line
if (!isset($uploadFileData['mime'])) $uploadFileData['mime'] = null;
// Now the `mime` key will always be there
if ($uploadFileData['mime'] === null) {
But then, I am not really proficient in PHP and I do not know the extension, so maybe it is going to break something else ...