jcampbell1 / simple-file-manager

A Simple PHP file manager. The code is a single php file.
MIT License
914 stars 502 forks source link

Allowed file types filter? #109

Open mattish91 opened 3 years ago

mattish91 commented 3 years ago

Is there away to only allow certain file types to be uploaded, for example PDF, Docx, Excel?

flattery103 commented 3 years ago

There is a denied file type listing but not an allowed. Probably wouldn't be too difficult to reverse that code. The denied file types are in the section $disallowed_patterns = ['*.php'];