diff options
| author | lixianbin <lixianbin@xiaomi.com> | 2017-01-04 11:23:40 +0800 |
|---|---|---|
| committer | lixianbin <lixianbin@xiaomi.com> | 2017-01-04 11:23:40 +0800 |
| commit | d96d0a87cfb9aa26b83702a72a3affe6d72697b3 (patch) | |
| tree | eb5f984e15defc01f5c81072e27a1a1adabf29b2 /weed/command/upload.go | |
| parent | f7ff98c747d2d3a4358fc0de8f0de78706ce9dc7 (diff) | |
| download | seaweedfs-d96d0a87cfb9aa26b83702a72a3affe6d72697b3.tar.xz seaweedfs-d96d0a87cfb9aa26b83702a72a3affe6d72697b3.zip | |
fix bug: upload big .gz file more than maxMB
Diffstat (limited to 'weed/command/upload.go')
| -rw-r--r-- | weed/command/upload.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/upload.go b/weed/command/upload.go index 1f0696f70..d7a468610 100644 --- a/weed/command/upload.go +++ b/weed/command/upload.go @@ -63,7 +63,7 @@ var cmdUpload = &Command{ func runUpload(cmd *Command, args []string) bool { secret := security.Secret(*upload.secretKey) - if len(cmdUpload.Flag.Args()) == 0 { + if len(args) == 0 { if *upload.dir == "" { return false } |
