This commit is contained in:
Dominic Wong
2021-12-10 16:44:17 +00:00
parent 3d93fd9b41
commit 2fd9aed34e

View File

@@ -15,7 +15,7 @@ service Space {
rpc Upload(UploadRequest) returns (UploadResponse) {} rpc Upload(UploadRequest) returns (UploadResponse) {}
} }
// Create an object. Returns error if object with this name already exists. If you want to update an existing object use the `Update` endpoint // Create an object. Returns error if object with this name already exists. Max object size of 10MB, see Upload endpoint for larger objects. If you want to update an existing object use the `Update` endpoint
// You need to send the request as a multipart/form-data rather than the usual application/json // You need to send the request as a multipart/form-data rather than the usual application/json
// with each parameter as a form field. // with each parameter as a form field.
message CreateRequest { message CreateRequest {
@@ -136,7 +136,7 @@ message DownloadResponse {
string url = 2; string url = 2;
} }
// Upload a large object. Returns a time limited presigned URL to be used for uploading the object // Upload a large object (> 10MB). Returns a time limited presigned URL to be used for uploading the object
message UploadRequest { message UploadRequest {
string name = 1; string name = 1;
// is this object public or private // is this object public or private