Project

General

Profile

Actions

Feature #60019

closed

Create utility function to get the file mimetype depending on available php modules

Added by Sascha Egerer almost 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2014-07-01
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.5
Tags:
Complexity:
Sprint Focus:

Description

TYPO3 does currently use finfo_file to get the mime type of a file. This does only work if the finfo module is loaded in PHP.
dkd is currently working with Microsoft to get TYPO3 working in the Microsoft Azure Web Gallery and there is no finfo module installed by default.

To get this code a little bit more portable there should be a wrapper function that checks if the finfo exsists and if not use mime_content_type.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #85641: mimeTypeGuessers hook of FileInfo is brokenClosedAndreas Kienast2018-07-25

Actions
Has duplicate TYPO3 Core - Task #46777: Improve behaviour when mime type detection is missingClosed2013-03-29

Actions
Precedes TYPO3 Core - Bug #64929: Fix filesize Unittest on windows with CRLFClosed2015-02-08

Actions
Actions

Also available in: Atom PDF