- changed status to closed
Make allowed upload file extension configurable
Issue #58
closed
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.
Comments (1)
-
- Log in to comment
Added as feature with this commit: https://bitbucket.org/99grad-team/nnrestapi/commits/6e56f9092a9ac0135f588c7497c61c5746a90a2a