You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In upload, you're loading in the full content of the file to memory, and then checking if it is too big. You should be checking the size while downloading, and immediately rejecting a file that is too big.
Steps to reproduce:
curl localhost:8000 -X POST -F file=@/dev/zero and watch as the process uses all your system's memory despite having a max_content_length of 10MB.
The text was updated successfully, but these errors were encountered:
In
upload
, you're loading in the full content of the file to memory, and then checking if it is too big. You should be checking the size while downloading, and immediately rejecting a file that is too big.Steps to reproduce:
curl localhost:8000 -X POST -F file=@/dev/zero
and watch as the process uses all your system's memory despite having amax_content_length
of 10MB.The text was updated successfully, but these errors were encountered: