send chunk offset
This commit is contained in:
parent
d0a63dfaa6
commit
fc0d0612c8
1 changed files with 1 additions and 0 deletions
|
@ -1022,6 +1022,7 @@ class API(ox.API):
|
|||
form.add_file('chunk', fname, chunk)
|
||||
if len(chunk) < CHUNK_SIZE or f.tell() == fsize:
|
||||
form.add_field('done', '1')
|
||||
form.add_field('offset', str(done))
|
||||
try:
|
||||
data = self._json_request(uploadUrl, form)
|
||||
except KeyboardInterrupt:
|
||||
|
|
Loading…
Reference in a new issue