Details
-
Bug
-
Resolution: Unresolved
-
High
-
None
-
5.4.10
-
None
-
None
Description
Found out while using kaliop migration bundle to create binary files and set custom mimetypes.
Was possibly working before 5.4.
The error seems to be in https://github.com/ezsystems/ezpublish-kernel/blob/v2014.11.8/eZ/Publish/Core/FieldType/BinaryBase/BinaryBaseStorage.php#L114 : we are not honouring there the mimetype sent in by the user (if it set), while imho we should.
I did not test it with ezplatform, but a cursory look at the code seems to exhibit the same pattern: https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/FieldType/BinaryBase/BinaryBaseStorage.php#L86
PS: I noticed that the BC file in 5.4 mentions that:
`mimeType` property from BinaryFile is deprecated.
I am not sure how that should be interpreted... does it man that it is impossible to programatically set custom mimetypes ?