def get_upload_content_type(self):
if not hasattr(self, '<STR_LIT>'):<EOL><INDENT>with self.get_storage().open(self.get_upload_path()) as upload:<EOL><INDENT>content_type = Magic(mime=True).from_buffer(upload.read(<NUM_LIT>))<EOL><DEDENT>self._upload_content_type = content_type<EOL><DEDENT>return self._upload_content_type<EOL>
Determine the actual content type of the upload.