diff --git a/upload.go b/upload.go index 3728044..364b3dc 100644 --- a/upload.go +++ b/upload.go @@ -9,6 +9,7 @@ import ( "io" "io/ioutil" "mime" + "os" "path" "strings" "time" @@ -73,6 +74,7 @@ func executeUpload(inFileName string, inFileHandle io.ReadSeeker, useCalculatedF if cfg.Progress { bar := pb.New64(ps.Size).Prefix(inFileName).SetUnits(pb.U_BYTES) + bar.Output = os.Stderr bar.Start() barUpdate := true