// Validate form field size for s3 specification requirement.
Validate form field size for s3 specification requirement.
// Validate form field size for s3 specification requirement .
func validateFormFieldSize(formValues http.Header) error {
	for k := range formValues {
		if int64(len(formValues.Get(k))) > int64(1*humanize.MiByte) {
			return errors.New("Data size larger than expected")
		}
	}
	return nil
}
func validateFormFieldSize ( formValues http . Header ) error { for k := range formValues { if int64 ( len ( formValues . Get ( k ) ) ) > int64 ( 1 * humanize . MiByte ) { return errors . New ( " " ) } } return nil }
Validate form field size for s3 specification requirement.
Validate form field size for s3 specification requirement .
// Iterate over form values // Check if value's field exceeds S3 limit // Success.