Hello!
I'm using liferay 7.1.3 GA4 and for Advance File Input is using version 1.0
![]()
As I said, Liferay - Java is not avaliable to get the file when this is draged from the file system.
HTML
<div class="col-md-12">
<!-- Advanced File Input -->
<div class="form-group mb-0">
<h4 class="h6 g-font-weight-600 g-color-black g-mb-20">
<liferay-ui:message key="neworder.uploadRelatedFile" />
</h4>
<input class="js-file-attachment" name="fileAttachmentPO[]" type="file" multiple="multiple">
</div>
<!-- End Advanced File Input -->
</div>
JAVA code
12345678 | UploadPortletRequest uploadPortletRequest = PortalUtil.getUploadPortletRequest(actionRequest); Map<String, FileItem[]> files= uploadPortletRequest.getMultipartParameterMap(); for (Entry<String, FileItem[]> file2 : files.entrySet()) { FileItem item[] =file2.getValue(); try { for (FileItem fileItem : item) { File file = fileItem.getStoreLocation(); <--- File not exist file.exists() == > false |
Have you any idea if this problem with the component or java perse?
The same behaviour is happening in Chrome and Firefox