fix bug: upload big .gz file more than maxMB

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

No files matched your search

+1 -1
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
}