Use full path instead of basename when reading file for upload

This might address #83.
This commit is contained in:
Matthew Barry 2019-07-16 12:24:33 -05:00 committed by GitHub
parent 42f0ac0284
commit dc97101d47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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