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
Adding capability to take max upload size per request.Fileupload 1 3 1 #22
Adding capability to take max upload size per request.Fileupload 1 3 1 #22
Conversation
As of now FileUploadBase has sizeMax which is global for all uploads, in many cases it is required to calculate this limit based on request. https://stackoverflow.com/questions/16585866/changing-file-size-limit-maxuploadsize-depending-on-the-controller
As of now FileUploadBase has sizeMax which is global for all uploads, in many cases it is required to calculate this limit based on request. https://stackoverflow.com/questions/16585866/changing-file-size-limit-maxuploadsize-depending-on-the-controller
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure no one is looking at old branches for this component. You should based your PR off of master.
This PR needs tests. There is also no documentation for the new feature.
src/main/java/org/apache/commons/fileupload/FileUploadBase.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/commons/fileupload/servlet/ServletRequestContext.java
Show resolved
Hide resolved
with a method
where FileItemRequest would contain methods like
On the other hand, rethinking that, it is probably a better idea, if I do that myself. |
Please close in favour of FILEUPLOAD-300. |
@jochenw i implemented current solution avoiding breaking changes for 1.3.1, but i agree with you for master, we can do it with api changes. Also i'll do more brainstorming on this feature. Closing this PR in favour of FILEUPLOAD-300. |
As of now FileUploadBase has sizeMax which is global for all uploads, in many cases it is required to calculate this limit based on request.
https://stackoverflow.com/questions/16585866/changing-file-size-limit-maxuploadsize-depending-on-the-controller