multipart: reject part upload if size is less than 5MB. (#1518)

This commit is contained in:
Krishna Srinivas
2016-05-09 00:36:05 +05:30
committed by Harshavardhana
parent 88e1c04259
commit 75320f70d0
6 changed files with 39 additions and 7 deletions

View File

@@ -458,6 +458,8 @@ func toAPIErrorCode(err error) (apiErr APIErrorCode) {
apiErr = ErrWriteQuorum
case InsufficientReadQuorum:
apiErr = ErrReadQuorum
case PartTooSmall:
apiErr = ErrEntityTooSmall
default:
apiErr = ErrInternalError
}