def mimetype(self): """ Readable mimetype, guessed from file content """ self.file.open() return magic.from_buffer(self.file.read(1024), mime=True)