Ok,
I found a piece of the solution: Liferay is doing already the processing for the multipart form with commons apache library itself!
So next problem is then to capture the file which is stored by Liferay.
The point is that I have my own portlet to process my action calls for my framework.
Instead of process my action in the method processAction(ActionRequest actionRequest, ActionResponse actionResponse) I do it in the doView(RenderRequest renderRequest, RenderResponse renderResponse)
The point is now: I can capture the stored uploaded file with next code in the processAction method
UploadPortletRequest request2 = PortalUtil.getUploadPortletRequest(actionRequest);
if (request2 != null && request2.getFileName("attachmentFile") != null)
File test = request2.getFile("attachmentFile");
BUT, If I want to have this file in my doView method I have to use (because not available of the actionRequest object!! in the doRender method...):
UploadServletRequest request3 = PortalUtil.getUploadServletRequest(request);
if (request3 != null && request3.getFileName("attachmentFile") != null)
File test1 = request3.getFile(request3.getFileName("attachmentFile"));
=> in the UploadServletRequest object I do not find my File!!!
Anybody a solution?
不適当であることを指摘する場合は、ログインしてください。