Fixed chunks

This commit is contained in:
MatMasIt 2022-01-31 09:21:42 +01:00 committed by GitHub
parent 3b3308a8cb
commit 141d05626b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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