add ETag to upload results and chunks

This commit is contained in:
Chris Lu
2018-09-22 22:12:21 -07:00
parent 420f068376
commit 7d6b2a4740
4 changed files with 15 additions and 0 deletions

View File

@@ -123,6 +123,7 @@ func submitForClientHandler(w http.ResponseWriter, r *http.Request, masterUrl st
m["fid"] = assignResult.Fid
m["fileUrl"] = assignResult.PublicUrl + "/" + assignResult.Fid
m["size"] = uploadResult.Size
m["eTag"] = uploadResult.ETag
writeJsonQuiet(w, r, http.StatusCreated, m)
return
}