X-Git-Url: https://git.p6c8.net/jirafeau/jirafeau.git/blobdiff_plain/d2bf1e757a925c54ce3db40a8f26bb185d0e7d75..refs/merge-requests/39/head:/lib/config.original.php diff --git a/lib/config.original.php b/lib/config.original.php index 6b7c342..54be072 100644 --- a/lib/config.original.php +++ b/lib/config.original.php @@ -170,6 +170,15 @@ $cfg['one_time_download_preselected'] = false; */ $cfg['maximal_upload_size'] = 0; +/* Forbid specific file extensions from being uploaded. + * Leave empty to allow every extension. + * Extensions are matched case-insensitively; a leading dot is optional. + * Compound extensions such as 'tar.gz' are supported. Note that 'gz' + * also covers 'tar.gz', while 'tar.gz' leaves plain '.gz' files allowed. + * $cfg['disallowed_extensions'] = array('exe', 'bat', 'sh', 'php', 'tar.gz'); + */ +$cfg['disallowed_extensions'] = array(); + /* Proxy IP * If the installation is behind some reverse proxies, it is possible to set * the allowed proxy IP. @@ -235,6 +244,10 @@ $cfg['installation_done'] = false; */ $cfg['debug'] = false; +/* Enable this debug flag to enforce the classic (synchronous) file upload mechanism. + */ +$cfg['debug_enforce_classic_upload'] = false; + /* Set Jirafeau's maximal upload chunk * When Jirafeau upload a large file, Jirafeau sends several data chunks to fit server's capabilities. * Jirafeau tries to upload each data chunk with the maximal size allowed by PHP (post_max_size and upload_max_filesize).