Added the ability for users to specify their own allowed file extensions.