-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Other fixes for resumable upload #1
base: fix-resumable-upload
Are you sure you want to change the base?
Other fixes for resumable upload #1
Conversation
@@ -371,6 +371,7 @@ func (s *Server) multipartUpload(bucketName string, r *http.Request) jsonRespons | |||
func (s *Server) resumableUpload(bucketName string, r *http.Request) jsonResponse { | |||
predefinedACL := r.URL.Query().Get("predefinedAcl") | |||
contentEncoding := r.URL.Query().Get("contentEncoding") | |||
contentType := r.Header.Get("x-upload-content-type") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idhulendhu vangi modhaye save panirnum nu nenakre
https://cloud.google.com/storage/docs/json_api/v1/parameters#xuploadcontenttype from https://cloud.google.com/storage/docs/performing-resumable-uploads#initiate-session
@@ -462,7 +464,7 @@ func (s *Server) uploadFileContent(r *http.Request) jsonResponse { | |||
obj.Crc32c = checksum.EncodedCrc32cChecksum(obj.Content) | |||
obj.Md5Hash = checksum.EncodedMd5Hash(obj.Content) | |||
obj.Etag = fmt.Sprintf("%q", obj.Md5Hash) | |||
obj.ContentType = r.Header.Get(contentTypeHeader) | |||
//obj.ContentType = r.Header.Get(contentTypeHeader) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chunks upload panrapa header la edhum irkadhu .. so Load
pani varadha (from L452) apdiye vechukalam nu nenakre
objectDelete should return StatusNoContent instead of plain 200
No description provided.