From a68cf9872fcafecc6cd4bd9260a9be001dc231e4 Mon Sep 17 00:00:00 2001 From: andreimarcu Date: Thu, 5 Nov 2015 01:59:50 -0500 Subject: [PATCH] Allow filename for stdin input --- linx.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linx.go b/linx.go index 59d18b5..9004f03 100644 --- a/linx.go +++ b/linx.go @@ -90,6 +90,8 @@ func upload(filePath string, deleteKey string, randomize bool, expiry int64, ove byt, err := ioutil.ReadAll(os.Stdin) checkErr(err) + fileName = desiredFileName + br := bytes.NewReader(byt) ssum = sha256sum(br)