Skip to content
Snippets Groups Projects
Commit 00f31bfc authored by Ralf Zimmermann's avatar Ralf Zimmermann Committed by Frans Saris
Browse files

[BUGFIX] EXT:form - fatal on file upload

use finfo_file to determine the file mime type

Resolves: #70181
Releases: master
Change-Id: I337205077479d88bf94a4117515b75e8d114728d
Reviewed-on: http://review.typo3.org/43623


Reviewed-by: default avatarFrans Saris <franssaris@gmail.com>
Tested-by: default avatarFrans Saris <franssaris@gmail.com>
parent ed33d304
Branches
Tags
No related merge requests found
......@@ -192,7 +192,7 @@ class HandleIncomingFormValues implements SingletonInterface {
$originalFilename = $_FILES['tx_form_form']['name'][$formPrefix][$fieldName][$key];
$size = $_FILES['tx_form_form']['size'][$formPrefix][$fieldName][$key];
}
$fileInfo = GeneralUtility::makeInstance(FileInfo::class, $tempFilename);
$fileInfo = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Type\File\FileInfo::class, $tempFilename);
return array(
'tempFilename' => $tempFilename,
'originalFilename' => $originalFilename,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment