georgringer / news

TYPO3 Extension news
GNU General Public License v2.0
265 stars 356 forks source link

Media Field doesn't allow MP3 files #16

Closed hanspagel closed 8 years ago

hanspagel commented 10 years ago

Please add MP3 as allowed media file. Already allowed: "gif,jpg,jpeg,tif,tiff,bmp,pcx,tga,png,pdf,ai,flv,mp4"

Configuration/TCA/tx_news_domain_model_news.php, Line 778

$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] . ',flv,mp4,mp3'

For now I added this to my extTables.php:

$filetypes = $GLOBALS['TCA']['tx_news_domain_model_news']['columns']['fal_media']['config']['foreign_selector_fieldTcaOverride']['config']['appearance']['elementBrowserAllowed'];
$GLOBALS['TCA']['tx_news_domain_model_news']['columns']['fal_media']['config']['foreign_selector_fieldTcaOverride']['config']['appearance']['elementBrowserAllowed'] = $filetypes . ',mp3';
georgringer commented 8 years ago

I plan to deprecate the media relation in favor of fal, so no change done anymore