Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Engine 2.2.0
-
None
Description
When doing a file upload with a file size exceeding 2GB:
curl -F "my_file=@a_very_large_file" --header "Content-Type: multipart/related; type=application/atom+xml" http://...
the following server code snippet:
<%
org.apache.sling.api.request.RequestParameter fileParam = slingRequest.getRequestParameter("my_file");
%>
will report a "null" fileParam. Reason for this is a limitation in commons-fileupload-1.1.1 which is embedded in sling-engine: the servlet container will report a content length of -1 (as the size is not representable in an integer) and FileUploadBase.parseRequest then throws an "UnknownSizeException". This was fixed in commons-fileupload-1.2.1.
Attachments
Issue Links
- relates to
-
FILEUPLOAD-102 [fileupload] FileUpload 2 gig File Size Limitation
- Closed