-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upload limit is ignored #336
Comments
The middleware was implemented in #53 and yes, it turns out it is broken. I just reproduced this issue. What would be the way of going forward with fixing this? Should we check HEAD requests, or do something in the middleware? Any ideas? |
At one point I read a comment (but I am not sure in which repo or issue/discussion) that there is now a native way with the new versions of I've been looking for that comment frantically, but unfortunately haven't found it yet. |
It would be the best way of moving forward if something like that exists. Custom implementations are not always infallible, like we saw in this case :D |
I think I found it: https://stackoverflow.com/a/78399675 |
That's superb, can you try it out? One thing to note that we probably won't be able to change this on the fly since it's configured while the App is constructed. |
Not sure when I get to it, but yes, I would like to. |
I tried it, but unfortunately no difference. Maybe there's an issue with the |
Yup, shoot me a draft whenever you can! |
This (#360) was supposed to work, but it doesn't. I am not sure how to solve this. I can't believe nobody ever got this to work. |
We both seem quite puzzled by this. Maybe a gentle ping to the actix master @robjtede would help us out a bit 😊 |
I have set
max_content_length = "50MB"
, but whenever I upload a file larger than 50MB, the entire file is uploaded and only then I get the error message that the limit is exceeded.rpaste
limit_rpaste.mp4
curl
limit_curl.mp4
The text was updated successfully, but these errors were encountered: