Lines Matching refs:mimetype
152 def mimetype(self):
267 media = MediaIoBaseUpload(fh, mimetype='image/png',
284 def __init__(self, fd, mimetype, chunksize=DEFAULT_CHUNK_SIZE,
293 mimetype: string, Mime-type of the file.
304 self._mimetype = mimetype
321 def mimetype(self):
392 media = MediaFileUpload('cow.png', mimetype='image/png',
409 def __init__(self, filename, mimetype=None, chunksize=DEFAULT_CHUNK_SIZE,
415 mimetype: string, Mime-type of the file. If None then a mime-type will be
427 if mimetype is None:
428 (mimetype, encoding) = mimetypes.guess_type(filename)
429 super(MediaFileUpload, self).__init__(fd, mimetype, chunksize=chunksize,
444 return MediaFileUpload(d['_filename'], mimetype=d['_mimetype'],
456 def __init__(self, body, mimetype='application/octet-stream',
465 mimetype: string, Mime-type of the file or default of
473 super(MediaInMemoryUpload, self).__init__(fd, mimetype, chunksize=chunksize,
753 media = MediaFileUpload('cow.png', mimetype='image/png',
793 start_headers['X-Upload-Content-Type'] = self.resumable.mimetype()