Skip to main content
Level 2
Oct 13, 2016 2:52 PM UTC
Solved

Form submit errors out if file upload is more than 100kb - Default Mail Action

Hi,

We are using Default Mail Action from AEM and when I use a file more than 100kb in file upload and submit the form, it errors out as below.

Request Entity Too Large

The requested resource
/content/iss/partnernet-lexmark-com/en_us/solutions/advanced-solutions/lexmark-postage-printing/postage-printing-order-form.html
does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit.

Is there any specific reason that OOTB Mail Servlet accepts only 100kb. Also want to know if there is any hotfix or do I need to come up with my own servlet for posting large volume of data through Form submit?

Thanks,

Narendra N

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Naren1925Accepted solution
Level 2
Oct 17, 2016 8:22 PM UTC

Scott,

The problem is with the webserver which is stopping to send large amount of data in a single request. So I made the required changes in the apache conf file to make it work.

Thank you !!

3 replies

smacdonald2008
Level 10
Oct 13, 2016 5:25 PM UTC

I would write your own servlet and front end - similiar to this:

http://scottsdigitalcommunity.blogspot.ca/2013/07/uploading-files-to-adobe-experience.html

Now in this example - notice we use SLign Sevlet to handle a uploaded file. This is what you can do. Change the servlet logic to send email (as opposed to using the ASSET MANAGER API) with the file attachment. You can use Java Mail API to do that.

Hope this helps...

Translate
Naren1925AuthorAccepted solution
Level 2
Oct 17, 2016 8:22 PM UTC

Scott,

The problem is with the webserver which is stopping to send large amount of data in a single request. So I made the required changes in the apache conf file to make it work.

Thank you !!

Translate
smacdonald2008
Level 10
Oct 18, 2016 1:16 PM UTC

Thank you for posting the solution. 

Translate