mirror of
https://github.com/pgsty/minio.git
synced 2026-07-25 06:56:18 +03:00
Use humanize constants for KiB, MiB and GiB units. (#3322)
This commit is contained in:
+2
-1
@@ -20,6 +20,7 @@ import (
|
||||
"crypto/x509"
|
||||
"time"
|
||||
|
||||
humanize "github.com/dustin/go-humanize"
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/minio/pkg/objcache"
|
||||
)
|
||||
@@ -70,7 +71,7 @@ var (
|
||||
var (
|
||||
// Limit fields size (except file) to 1Mib since Policy document
|
||||
// can reach that size according to https://aws.amazon.com/articles/1434
|
||||
maxFormFieldSize = int64(1024 * 1024)
|
||||
maxFormFieldSize = int64(1 * humanize.MiByte)
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user