How to get File Attachments from adobe adaptive form to maven project?
Solved! Go to Solution.
Views
Replies
Total Likes
This is an easier and recommended way to get hold of the AF attachments on form submission. Please follow the steps mentioned below
Down load the sample bundle and deploy it using web console in AEM
Import the Sample Package using package manager. This package has the custom submit
Import the Sample Adaptive Form using the package manager. This adaptive form is configured to submit to the custom submit handler called
"handleafsubmission"
Preview the Test Attachments form . Add a couple of attachments and submit
The attachments will be written to the folder of your AEM installation
I have deleted my earlier response since this is the recommended approach
Views
Replies
Total Likes
You want to access attachments after the form is submitted?
are you using AEM workflow?
Views
Replies
Total Likes
Views
Replies
Total Likes
When you add attachments to AF they are stored in tmp location. Every time an attachment is added to AF you can use the event handler to get the location of the file and write that location to the hidden field in your AF. When you form is submitted your servlet can extract the attachments from that location and do the needful
I am attaching a simple form with a custom client lib. Preview the form and add attachments.You should see the text field populated with the path to the attachments
https://documentcloud.adobe.com/link/track?uri=urn:aaid:scds:US:54646349-ac33-4d87-8813-95861ce78bfc
import the two packages using package manager
then preview the TestAttachments form
add a couple of attachments
you should see the path of the attachments written to the text box
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
about first question Yes, But I tried a lot to get the attached files to the maven project using custom action servlet but I couldn't
i want to get attachments in this servlet.
https://documentcloud.adobe.com/link/track?uri=urn:aaid:scds:US:0a7a542e-93b0-4aaf-9a5c-83272ded7552
Views
Replies
Total Likes
.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies