mirror of
https://github.com/minio/minio.git
synced 2025-11-26 04:26:12 -05:00
multipart: reject part upload if size is less than 5MB. (#1518)
This commit is contained in:
committed by
Harshavardhana
parent
88e1c04259
commit
75320f70d0
@@ -233,3 +233,19 @@ type InvalidPart struct{}
|
||||
func (e InvalidPart) Error() string {
|
||||
return "One or more of the specified parts could not be found"
|
||||
}
|
||||
|
||||
// InvalidPartOrder parts are not ordered as Requested
|
||||
type InvalidPartOrder struct {
|
||||
UploadID string
|
||||
}
|
||||
|
||||
func (e InvalidPartOrder) Error() string {
|
||||
return "Invalid part order sent for " + e.UploadID
|
||||
}
|
||||
|
||||
// PartTooSmall - error if part size is less than 5MB.
|
||||
type PartTooSmall struct{}
|
||||
|
||||
func (e PartTooSmall) Error() string {
|
||||
return "Part size should be atleast 5MB"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user