Skip to content
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

Open
wants to merge 5 commits into
base: fix-resumable-upload
Choose a base branch
from

Conversation

quettabit
Copy link

No description provided.

@@ -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")
Copy link
Author

@quettabit quettabit Jun 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -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)
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants