uploading docx via OctoberCms media manager

Ad

whenever i try to upload a .docx file via October Cms media manager and I get this " The file type used is blocked for security reasons " how can I overwrite the allowed file extensions ?

I'm using BUILD 415

Ad

Answer

Ad

octobercms allow only some extensions in file manager. You need to add specific one by hand.

add docx extension at CMS config. in config/cms.php, add:

'fileDefinitions' => [
    'assetExtensions' => array_merge(FileDefinitions::get('assetExtensions'), ['docx']), ],

you can find the list of supported extensions here : https://github.com/octobercms/library/blob/master/src/Filesystem/Definitions.php

Ad
source: stackoverflow.com
Ad