def _post_file()

in roles/gcs-upload/library/gcs_upload.py [0:0]


    def _post_file(self, file_detail):
        full_path, relative_path = file_detail
        relative_path = self.prefix + relative_path
        data = open(full_path, 'rb')
        blob = self.bucket.blob(relative_path)
        if self.cache_control:
            blob.cache_control = self.cache_control
        mime_guess, encoding = mimetypes.guess_type(full_path)
        mimetype = mime_guess if mime_guess else 'application/octet-stream'
        blob.upload_from_file(data, content_type=mimetype)