def upload(current, type, flow_id, part=0):
collection_id = utils.new_collection_id()
result = location.BlobUploadSpecs.from_keywords(
url=blobstore.create_upload_url(
utils.route_api("/control/upload_receive",
type=type,
flow_id=flow_id,
collection_id=collection_id,
part=part, client_id=current.client_id),
gs_bucket_name=app_identity.get_default_gcs_bucket_name())
).to_primitive()
return result
评论列表
文章目录