Add support for mimetypes filtering and multiple files.