Documentation

Configuration / filesystem.directories

This config option enables you to override global config options on directories matching a specific pattern. This pattern can either be a public file system path like "/files/documents" or a directory name like "images".

If a public file system path is specified that specific path and all directories below it would get the new option. If you specify only a directory name any directory anywhere matching that exact name would have the speicifed config options.

$moxieManagerConfig['filesystem.directories'] = array(
    "images" => array(
        "upload.extensions" => "gif,jpg,png"
    ),

"/files/documents" => array( "upload.extensions" => "docx,pdf" ) );
<add key="filesystem.directories">
    <directory pattern="images">
        <add key="upload.extensions" value="gif,jpg,png" />
    </directory>

    <directory pattern="/files/documents">
        <add key="upload.extensions" value="docx,pdf" />
    </directory>
</add>