diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2017-01-03 21:23:08 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-03 21:23:08 -0800 |
| commit | 297f64e286873b0740c55580a1061129a94d2b0c (patch) | |
| tree | 0c8fdfd9c54ca4babc9a63e3ef24b019ed7d80e8 /weed/command/upload.go | |
| parent | 8fb29e523009901d7bcc5adff8a3da83ea515a18 (diff) | |
| parent | d96d0a87cfb9aa26b83702a72a3affe6d72697b3 (diff) | |
| download | seaweedfs-297f64e286873b0740c55580a1061129a94d2b0c.tar.xz seaweedfs-297f64e286873b0740c55580a1061129a94d2b0c.zip | |
Merge pull request #428 from sparklxb/master
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 } |
