Using class attribute seems more readable than self.get_file_format().
Attach a file by drag & drop or click to upload