fs: All parts except the last part should be of the same size (#5045)

fixes #4881
This commit is contained in:
Krishna Srinivas
2017-10-17 12:01:28 -07:00
committed by Dee Koder
parent 3d2d63f71e
commit 75865efb0e
3 changed files with 30 additions and 0 deletions

View File

@@ -341,6 +341,13 @@ func (e InvalidPart) Error() string {
return "One or more of the specified parts could not be found. The part may not have been uploaded, or the specified entity tag may not match the part's entity tag."
}
// PartsSizeUnequal - All parts except the last part should be of the same size
type PartsSizeUnequal struct{}
func (e PartsSizeUnequal) Error() string {
return "All parts except the last part should be of the same size"
}
// PartTooSmall - error if part size is less than 5MB.
type PartTooSmall struct {
PartSize int64