AEM adaptive form file upload to custom path | Community
Skip to main content
Level 4
August 26, 2022
Solved

AEM adaptive form file upload to custom path

  • August 26, 2022
  • 2 replies
  • 1761 views

I am using the guidefileupload component to attach files to the Adaptive forms, I see that the files are being uploaded into the /tmp/fd/af/ directory on the server by default. I believe something like this should be configurable. Is there a way to change the path to a custom one? I couldn't find any documentation on this. Any guidance on this is appreciated

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 Pulkit_Jain_

@balaram_rudra

Don't recall if there was a configuration OOTB to change the file upload path, but you can write an OSGi service[0] to store the form attachments in a new location in the repository.

Hope this helps.

 

[0] - https://experienceleague.adobe.com/docs/experience-manager-learn/forms/store-and-retrieve-af-with-2fa/store-form-attachments.html?lang=en 

2 replies

Adobe Employee
August 26, 2022

no. That location is temporary storage location and the files will be deleted after a period of time

Level 4
August 29, 2022

Thank you @workflowuser for the response, but I see that on the guide bridge API, getGuideState method which has a mention of fileuploadpath

Adaptive Forms Class: GuideBridge (adobe.com)

I was wondering what a parameter like this actually one does on a get call ?

Pulkit_Jain_
Adobe Employee
Pulkit_Jain_Adobe EmployeeAccepted solution
Adobe Employee
August 31, 2022

@balaram_rudra

Don't recall if there was a configuration OOTB to change the file upload path, but you can write an OSGi service[0] to store the form attachments in a new location in the repository.

Hope this helps.

 

[0] - https://experienceleague.adobe.com/docs/experience-manager-learn/forms/store-and-retrieve-af-with-2fa/store-form-attachments.html?lang=en 

Level 4
September 21, 2022

Thank you @pulkit_jain_ , I am aware of this article and implemented something similar to this. 
I do feel that this path to which the files are written should be configurable. Hope this will be considered by the AEM team and be added as a feature for the later versions.