Make allowed upload file extension configurable

Issue #58 closed
Alexander Grein created an issue

Currently it is not possible to configure the uploadable files.

All types are hardcoded in a static variable inside nnhelpers

static $TYPES = [
        'image'     => ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'tif', 'tiff'],
        'video'     => ['mp4', 'webm', 'mov'],
        'document'  => ['doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'ai', 'indd', 'txt'],
        'pdf'       => ['pdf'],
    ];

It is eg. currently not possible to upload a svg image or a zip file, which are not “that” dangerous.

It should be configurable via the fileUploads configurations/annotations.