我在高级模式下使用p:fileUpload
。当我尝试上传文件时,文件上传永远不会完成。即使文件非常小,它也会一直上传。在上传进度条中,它显示它仍在上传,即使文件非常小。你能帮我解决这个问题吗?
前端:
<p:layoutUnit position="center">
<p:panel header="HASH RAPOR AL PARAMETRELERİ">
<p:panelGrid columns="4">
Başlangıç 2 : <p:calendar value="#{hashRaporBean.basTarih}" pattern="yyyy-MM-dd" /> Bitiş : <p:calendar value="#{hashRaporBean.bitTarih}" pattern="yyyy-MM-dd" />
</p:panelGrid>
<p:panelGrid columns="1" style="width: 415px">
<h:outputText value="veya" style="center" />
</p:panelGrid>
<p:panelGrid columns="1" style="width: 415px">
<p:fileUpload fileUploadListener="#{hashRaporBean.handleFileUpload}" mode="advanced" label="Dosya Seç.." uploadLabel="Dosyayı Yükle" cancelLabel="İptal"
dragDropSupport="false" update="messages" sizeLimit="10000000" fileLimit="1" allowTypes="/(\.|\/)(xls|xlsx|XLS|XLSX)$/"
auto="true" ajax="false"/>
<p:growl id="messages" showDetail="true" autoUpdate="true" closable="true" sticky="false" life="3000"/>
<p:commandButton id="taslakFaturaSorgula" value="Hash Degerleri Al" actionListener="#{hashRaporBean.hashRaporAl(loginBean.satici.SupplierIDVKN)}"
style="text-align:center;" widgetVar="startButton1" onclick="start()" oncomplete="cancel()"/>
<p:progressBar id="progressBarClient" widgetVar="pbClient" style="width:300px"/>
</p:panelGrid>
</p:panel>
</p:layoutUnit>