mirror of
https://github.com/minio/minio.git
synced 2025-11-10 22:10:12 -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
@@ -627,6 +627,8 @@ func toAPIErrorCode(err error) (apiErr APIErrorCode) {
|
||||
apiErr = ErrEntityTooSmall
|
||||
case SHA256Mismatch:
|
||||
apiErr = ErrContentSHA256Mismatch
|
||||
case ObjectTooLarge:
|
||||
apiErr = ErrEntityTooLarge
|
||||
default:
|
||||
apiErr = ErrInternalError
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user