primefaces fileuploadlistener not called after upgraded from 6 to 7

UI Components for JSF
Post Reply
garytang
Posts: 4
Joined: 12 Jul 2019, 03:32

12 Jul 2019, 04:01

I upgraded the primefaces on my project from 6.0 to 7.0

In 6.0, the p:fileUpload works correctly without error. However, it does not work well after upgraded to 7.0

I tested onStart and onComplete. Both of them are working but it does not call fileUploadListener.

Pls help thx

Primefaces 7.0
JBoss 7.0
Java 1.8
JSF 2.1

Melloware
Posts: 1375
Joined: 22 Apr 2013, 15:48

12 Jul 2019, 12:45

PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 7.0.8 / PF Extensions 7.0.3

garytang
Posts: 4
Joined: 12 Jul 2019, 03:32

15 Jul 2019, 04:38

thank you for your reply but my issue is different.

I cannot upload file and it has no error message so i dont know how to solve it

garytang
Posts: 4
Joined: 12 Jul 2019, 03:32

18 Jul 2019, 10:03

its work now after adding the following into web.xml

------------------------------------------------------------------------------------
<multipart-config>
<max-file-size>10485760</max-file-size><!-- 1024 * 1024 * 10 = 10M -->
<max-request-size>15728640</max-request-size><!-- 1024 * 1024 * 15 = 15M -->
<file-size-threshold>1048576</file-size-threshold><!-- 1024 * 1024 * 1 = 1M -->
</multipart-config>
------------------------------------------------------------------------------------

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 12 guests