send chunk offset

This commit is contained in:
j 2014-04-11 14:08:45 +02:00
parent d0a63dfaa6
commit fc0d0612c8

View file

@ -1022,6 +1022,7 @@ class API(ox.API):
form.add_file('chunk', fname, chunk) form.add_file('chunk', fname, chunk)
if len(chunk) < CHUNK_SIZE or f.tell() == fsize: if len(chunk) < CHUNK_SIZE or f.tell() == fsize:
form.add_field('done', '1') form.add_field('done', '1')
form.add_field('offset', str(done))
try: try:
data = self._json_request(uploadUrl, form) data = self._json_request(uploadUrl, form)
except KeyboardInterrupt: except KeyboardInterrupt: