p:TextEditor and big image

UI Components for JSF
Post Reply
yahia88
Posts: 23
Joined: 19 Nov 2014, 01:04

22 May 2020, 13:58

Hi,

I try to use <p:textEditor> to create an html email, but when I try to add an image (5~10 MB) the bean method not called and cannot get the image in the bean
Is there a way to increase the authorized size of image in TextEditor, or there is an alternative to do that

Thanks

Regardsd

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

22 May 2020, 16:38

What error are you getting? Is this a QuillJS limitiation or a server limitation (aka Tomcat)?" What server are you using?
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 8.0.1 / PF Extensions 8.0.2

yahia88
Posts: 23
Joined: 19 Nov 2014, 01:04

23 May 2020, 00:26

Hi,

Thank you Melloware for your back

I didnt get any error, when I click a button the bean method not called and nothing displayed in console, but when there is a small image, it works fine

Regards

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

24 May 2020, 17:23

What server are you using?
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 8.0.1 / PF Extensions 8.0.2

yahia88
Posts: 23
Joined: 19 Nov 2014, 01:04

29 May 2020, 19:23

I use Apache Tomcat 7/8

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

29 May 2020, 19:26

make sure you don't have a max post size set in Tomcat that blocks any http posts above a certain limit say 1MB.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 8.0.1 / PF Extensions 8.0.2

yahia88
Posts: 23
Joined: 19 Nov 2014, 01:04

31 May 2020, 14:46

I added maxPostSize= in <Connector tag in server.xml of tomcat but the problem remains
I should add another things in web.xml of the application?
Thanks

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

31 May 2020, 16:19

Well that was my only thought of what could be wrong.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 8.0.1 / PF Extensions 8.0.2

yahia88
Posts: 23
Joined: 19 Nov 2014, 01:04

05 Jun 2020, 15:45

Hi,
Thank you Melloware for your indication
I add maxPostSize="-1" instead of a specific value and it worked

Regards

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

05 Jun 2020, 15:46

Awesome!
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 8.0.1 / PF Extensions 8.0.2

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests