Package com.helger.web.scope.multipart
Class RequestMultipartHelper
- java.lang.Object
-
- com.helger.web.scope.multipart.RequestMultipartHelper
-
public final class RequestMultipartHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static longMAX_REQUEST_SIZEThe maximum size of a single file (in bytes) that will be handled.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.helger.commons.state.EChangehandleMultipartFormData(jakarta.servlet.http.HttpServletRequest aHttpRequest, BiConsumer<String,Object> aConsumer)Parse the provided servlet request as multipart, if the Content-Type starts withmultipart/form-data.
-
-
-
Field Detail
-
MAX_REQUEST_SIZE
public static final long MAX_REQUEST_SIZE
The maximum size of a single file (in bytes) that will be handled. May not be larger than 2 GB as browsers cannot handle more than 2GB. See e.g. http://www.motobit.com/help/ScptUtl/pa33.htm or https://bugzilla.mozilla.org/show_bug.cgi?id=215450 Extensive analysis: here- See Also:
- Constant Field Values
-
-
Method Detail
-
handleMultipartFormData
@Nonnull public static com.helger.commons.state.EChange handleMultipartFormData(@Nonnull jakarta.servlet.http.HttpServletRequest aHttpRequest, @Nonnull BiConsumer<String,Object> aConsumer)
Parse the provided servlet request as multipart, if the Content-Type starts withmultipart/form-data.
-
-