Enhancement
1. Allowing to define the allowed types in app/config/allowed_types.txt
2. Auto identify the path in the config file.