[BUGFIX] File must use MIME type from index record 14/37214/2
authorAndreas Wolf <aw@foundata.net>
Wed, 25 Feb 2015 12:52:22 +0000 (13:52 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 28 Feb 2015 16:39:40 +0000 (17:39 +0100)
commita14a54efd11a7423abcfaecb793b48ed268b8908
tree8504799df70f7c01542f98ee489b6eea6336e86d
parentda07ff8104edf435f222e6e3e890f24589dc350b
[BUGFIX] File must use MIME type from index record

The MIME type is stored in a field "mimetype" in the drivers, while the
field is called "mime_type" in the database. As the file object deals
with both when retrieving the type, it must respect this mismatch.

Change-Id: I06882c4d77e38284a48f7f7d7527bfc1c535edf3
Resolves: #65335
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/37214
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Resource/AbstractFile.php
typo3/sysext/core/Tests/Unit/Resource/AbstractFileTest.php