mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-01-29 02:29:05 +01:00
1
Restriction by file type
Prasath Mani edited this page 2020-01-01 18:29:56 +05:30
There is ways to restrict upload regarding file extension with a logic similar to Apache access control.
- allowed upload extensions are listed as an array into
$allowed_upload_extensionsvariable - allowed create and rename file extensions are listed as an array into
$allowed_file_extensionsvariable
// Allowed file extensions for create and rename files
// e.g. 'txt,html,css,js'
$allowed_file_extensions = 'txt,html,js,css,scss';
// Allowed file extensions for upload files
// e.g. 'gif,png,jpg,html,txt'
$allowed_upload_extensions = 'jpg,jpeg,gif,txt,mp4';