Allow restrictions to be put on file extensions