Despite adding .zip to file Attachment component zip files are uploading but at submission of the form it says zip not supported | Community
Skip to main content
May 5, 2022
Solved

Despite adding .zip to file Attachment component zip files are uploading but at submission of the form it says zip not supported

  • May 5, 2022
  • 2 replies
  • 1306 views

AEM: 6.5.12
I have added .zip extension to File attachment component and now it lets me upload zip file.
But as soon as I click on submit button an alert pops up saying that the file is not supported.


 

 

 

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_

@vinit_pillai 

I didn't test this earlier but seems like zip format is not supported with the Adaptive Form file attachment component.

I tried different options[0] and none of those worked for me.

Supported MIME types are listed here- https://experienceleague.adobe.com/docs/experience-manager-65/forms/getting-started/introduction-forms-authoring.html?lang=en

 

 

[0] - 

application/zip
application/x-7z-compressed

 

2 replies

Pulkit_Jain_
Adobe Employee
Pulkit_Jain_Adobe EmployeeAccepted solution
Adobe Employee
May 5, 2022

@vinit_pillai 

I didn't test this earlier but seems like zip format is not supported with the Adaptive Form file attachment component.

I tried different options[0] and none of those worked for me.

Supported MIME types are listed here- https://experienceleague.adobe.com/docs/experience-manager-65/forms/getting-started/introduction-forms-authoring.html?lang=en

 

 

[0] - 

application/zip
application/x-7z-compressed

 

May 5, 2022

One more thing, @pulkit_jain_ 
Does this happen, when we click on OK on the alert which says the file is not supported and submit the form again then it submits.?? 
Update: Don't bother, submitting again was successful because the attachment was deleted afterwards.

Mayank_Gandhi
Adobe Employee
Adobe Employee
May 5, 2022

@vinit_pillai  due to security concerns zip is not supported. However, you can create a custom component for this similar to aem component design.

May 5, 2022

thanks @mayank_gandhi