|
[
Permlink
| « Hide
]
Arcko Duan added a comment - 25/Jun/08 09:39 PM
Issue reproduced in portal trunk and plugin trunk.
I have the same problem. The Upload which worked fine in Liferay 4.4.1 is not working anymore in Liferay 5.0.1.
Please provide a fix to this ASAP, this is really critical. The following code illustrates the problem: ------------ DiskFileItemFactory factory = new DiskFileItemFactory(); factory.setRepository(new File("/tmp/")); ServletFileUpload upload = new ServletFileUpload(factory); // Parse the request List<FileItem> items = (List<FileItem>) upload.parseRequest(httpRequest); if (items != null) { _log.debug("Found " + items.size() + " file items in the request"); } else { _log.debug("Found no file items in the request"); } ------------ This always returns 0 items. See also http://support.liferay.com/browse/LEP-6479 Struts sample portlet -- upload feture -- also does not work on 5.1.1
same issue since 4.4.2 code change i guess. this one affects any struts based portlet that tries to make uploads... console shows for struts sample portlet - upload: ERROR [UploadServletRequestImpl:111] the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null |
||||||||||||||||||||||||||||||||||||||||||||||