mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
When object whose size is greater than 5G is uploaded using presigned POST we should return error. (#3033)
fixes #2961
This commit is contained in:
committed by
Harshavardhana
parent
e51be73ac7
commit
5999a23d3e
@@ -114,7 +114,7 @@ func extractPostPolicyFormValues(reader *multipart.Reader) (filePart io.Reader,
|
||||
}
|
||||
formValues[canonicalFormName] = string(buffer)
|
||||
} else {
|
||||
filePart = io.LimitReader(part, maxObjectSize)
|
||||
filePart = limitReader(part, maxObjectSize)
|
||||
fileName = part.FileName()
|
||||
// As described in S3 spec, we expect file to be the last form field
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user