fix bug: upload big .gz file more than maxMB

This commit is contained in:
lixianbin
2017-01-04 11:23:40 +08:00
parent f7ff98c747
commit d96d0a87cf
3 changed files with 34 additions and 33 deletions

View File

@@ -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
}