Commit 2454651d authored by Ilya Simonov's avatar Ilya Simonov

chenge chunk_size for upload local video

parent a28213c8
...@@ -27,7 +27,7 @@ def download_file(url): ...@@ -27,7 +27,7 @@ def download_file(url):
def handle_uploaded_file(f, file_name): def handle_uploaded_file(f, file_name):
with open(file_name, 'wb+') as destination: with open(file_name, 'wb+') as destination:
for chunk in f.chunks(chunk_size=2097152): for chunk in f.chunks(chunk_size=4097152):
destination.write(chunk) 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