[AF] [AEM-AF-901-004]: error while submitting form with attachment | Community
Skip to main content
mintur24131905
Level 2
December 1, 2020
Solved

[AF] [AEM-AF-901-004]: error while submitting form with attachment

  • December 1, 2020
  • 5 replies
  • 6547 views

Hi Team,[AF] [AEM-AF-901-004]: I am getting this error while submitting the form with attachment.


 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by workflowuser

I have had the same issue when I  was submitting to the REST endpoint on my tomcat server.

Please follow this document

which tells you how to enable submission of attachments

  1.  enable multipart form data submission to tomcat, please add the following attribute to the context element of the <tomcatInstallDir>\conf\context.xml and restart your Tomcat server.
  2. <Context allowCasualMultipartParsing=“true”>

 

5 replies

Level 8
December 1, 2020

What is the submit action of the form?

mintur24131905
Level 2
December 1, 2020
Submitting to Rest End point
workflowuserAdobe EmployeeAccepted solution
Adobe Employee
December 1, 2020

I have had the same issue when I  was submitting to the REST endpoint on my tomcat server.

Please follow this document

which tells you how to enable submission of attachments

  1.  enable multipart form data submission to tomcat, please add the following attribute to the context element of the <tomcatInstallDir>\conf\context.xml and restart your Tomcat server.
  2. <Context allowCasualMultipartParsing=“true”>

 

mintur24131905
Level 2
December 3, 2020
I am geeting the error while submitting to form data model also
mintur24131905
Level 2
December 3, 2020

2020-12-03 20:56:16.324 DEBUG [com.shell.sem.core.filters.LoggingFilter] request for /content/forms/af/shell-eco-marathon/phase1/jcr:content/guideContainer, with selector af.submit
2020-12-03 20:56:16.324 DEBUG [com.shell.sem.core.filters.LoggingFilter] request for /content/forms/af/shell-eco-marathon/phase1/jcr:content/guideContainer, with selector af.submit
The error lo: 03.12.2020 20:56:16.333 *ERROR* [0:0:0:0:0:0:0:1 [1607009176322] POST /content/forms/af/shell-eco-marathon/phase1/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.utils.GuideUtils [AF] File mime type validation failed /content/forms/af/shell-eco-marathon/phase1/jcr:content/guideContainer/rootPanel/items/panel_1005590221/items/panel1604304561197/items/guidefileupload
03.12.2020 20:56:16.333 *ERROR* [0:0:0:0:0:0:0:1 [1607009176322] POST /content/forms/af/shell-eco-marathon/phase1/jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.servlet.GuideSubmitServlet [AF] Invalid file name or mime type for file resulted in submission failure

mintur24131905
Level 2
December 3, 2020
I am using image/*, to allow images.
Level 8
December 3, 2020

Can you post your server logs?

also are you able to submit without adding the attachments?

mintur24131905
Level 2
December 5, 2020
Level 8
December 6, 2020

What is your Aem forms Version? Please include the service pack as well