Fixed chunks

This commit is contained in:
MatMasIt
2022-01-31 09:21:42 +01:00
committed by GitHub
parent 3b3308a8cb
commit 141d05626b

View File

@ -36,7 +36,7 @@ def upload(csvPath):
offset = 0
headers = {}
for chunk in read_in_chunks(file_object, CHUNK_SIZE):
for chunk in read_in_chunks(file_object, 1024):
offset = index + len(chunk)
headers['Content-Range'] = 'bytes %s-%s/%s' % (index, offset - 1, content_size)
headers['Authorization'] = auth