Commit a09e9dd8 authored by Ilya Simonov's avatar Ilya Simonov

fix chunk_size for upload local video

parent e190ff9c
......@@ -29,7 +29,7 @@ def download_file(url):
def handle_uploaded_file(f, file_name):
with open(file_name, 'wb+') as destination:
for chunk in f.chunks():
for chunk in f.chunks(chunk_size=2097152):
destination.write(chunk)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment