implement allowedFileTypes functionality