Sets the allowed file extensions.
void setAllowedExtensions(List<String> extensions) { _allowedTypes = extensions; }