From dc97101d47187f15e106579200ad0d17e9e67192 Mon Sep 17 00:00:00 2001 From: Matthew Barry Date: Tue, 16 Jul 2019 12:24:33 -0500 Subject: [PATCH] Use full path instead of basename when reading file for upload This might address #83. --- contrib/matrix_upload | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/matrix_upload b/contrib/matrix_upload index ebc7ecf..5e86ddc 100755 --- a/contrib/matrix_upload +++ b/contrib/matrix_upload @@ -82,7 +82,7 @@ class Upload(object): to_stdout(message) def __iter__(self): - with open(self.filename, 'rb') as file: + with open(self.file, 'rb') as file: while True: data = file.read(self.chunksize)