content-length-range policy should be honored for the uploaded object sizes. (#3076)

This commit is contained in:
Krishna Srinivas
2016-10-25 12:17:03 +05:30
committed by Harshavardhana
parent 3977d6b7bd
commit 35e541e0b1
8 changed files with 79 additions and 34 deletions

View File

@@ -114,7 +114,7 @@ func extractPostPolicyFormValues(reader *multipart.Reader) (filePart io.Reader,
}
formValues[canonicalFormName] = string(buffer)
} else {
filePart = limitReader(part, maxObjectSize)
filePart = part
fileName = part.FileName()
// As described in S3 spec, we expect file to be the last form field
break