Fixed chunks
This commit is contained in:
parent
3b3308a8cb
commit
141d05626b
|
@ -36,7 +36,7 @@ def upload(csvPath):
|
||||||
offset = 0
|
offset = 0
|
||||||
headers = {}
|
headers = {}
|
||||||
|
|
||||||
for chunk in read_in_chunks(file_object, CHUNK_SIZE):
|
for chunk in read_in_chunks(file_object, 1024):
|
||||||
offset = index + len(chunk)
|
offset = index + len(chunk)
|
||||||
headers['Content-Range'] = 'bytes %s-%s/%s' % (index, offset - 1, content_size)
|
headers['Content-Range'] = 'bytes %s-%s/%s' % (index, offset - 1, content_size)
|
||||||
headers['Authorization'] = auth
|
headers['Authorization'] = auth
|
||||||
|
|
Reference in New Issue
Block a user