Use full path instead of basename when reading file for upload
This might address #83.
This commit is contained in:
parent
42f0ac0284
commit
dc97101d47
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ class Upload(object):
|
||||||
to_stdout(message)
|
to_stdout(message)
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
with open(self.filename, 'rb') as file:
|
with open(self.file, 'rb') as file:
|
||||||
while True:
|
while True:
|
||||||
data = file.read(self.chunksize)
|
data = file.read(self.chunksize)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue