Im using Cloudflare, and it has a POST request limit of 100M and I want to upload larger files, how to bypass this? I was thinking to upload in chunks but i have no idea how.
Asked
Active
Viewed 134 times
0
-
1Does this answer your question? [Uploading large files with Python/Django](https://stackoverflow.com/questions/8249042/uploading-large-files-with-python-django) – Amin S Feb 07 '23 at 08:10
-
ive looked at this tread, someone suggests using django-chunked-uploads i tried the demo, but it upload as a .part file, and to be honest i dont know what that means – MrLonely Feb 07 '23 at 08:22
-
try https://stackoverflow.com/a/64270076/20875923 – Amin S Feb 07 '23 at 21:46
-
https://stackoverflow.com/a/23139023/20875923 – Amin S Feb 07 '23 at 21:49
-
so i tried this and ... https://imgur.com/a/LEzAtOM – MrLonely Feb 08 '23 at 05:35
-
Well seems from cloudflare not your django code problem. First approach in my mind, create multiple requests with js. tag it and concat in backend. Create checksum in front and check in the end in django. – Amin S Feb 08 '23 at 06:56
-
That sounds... i dont know js that well, how should i search on Google to look at some examples? and one more think would this work : https://dev.to/shubhamkshatriya25/ajax-file-upload-in-chunks-using-django-with-a-progress-bar-4nhi ? – MrLonely Feb 08 '23 at 15:31
-
yeah that's fine. there are plenty open source js around no need to code from scratch. https://stackoverflow.com/questions/33537769/how-to-upload-a-file-with-ajax-in-small-chunks-and-check-for-fails-re-upload-th – Amin S Feb 08 '23 at 17:25
-
i dont know man, nothing is working maybe im too dumb, is there any way to do this without using javascript? – MrLonely Feb 08 '23 at 19:35
-
Well i think you can increase your maximum upload size with upgrading your account in cloudflare. Otherwise i don’t know any more solution since cloudflare would stop it at first step. – Amin S Feb 08 '23 at 19:59