AEM Assets Upload: Is it using magic numbers filtering in order to validate only true type of files upload? | Community
Skip to main content
Level 4
July 25, 2023
Solved

AEM Assets Upload: Is it using magic numbers filtering in order to validate only true type of files upload?

  • July 25, 2023
  • 2 replies
  • 975 views

Hi Team,

Like the question in the title, for AEM Assets uploading, Is it using magic numbers filtering in order to validate only true type of files upload, please?

Thanks.

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 HuiDeShao

FYI, I got the answer from Adobe Ticket Support. MagicNumberFileFilter is indeed used.

https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/index.html?org/apache/commons/io/filefilter/MagicNumberFileFilter.html

2 replies

krati_garg
Adobe Employee
Adobe Employee
July 26, 2023

@huideshao Please elaborate on your query.

HuiDeShaoAuthor
Level 4
July 26, 2023

@krati_garg  Thanks for helping here. Actually, I just got this question from LeanIX reviewers. >.<

"
on AEM:Assets are stored in the DAM. e.g., .pdf, .docx, .doc, .xls, .jpg, .png 1. Please verify to use magic numbers filtering in order to validate only true type of files upload
"

DPrakashRaj
Community Advisor
Community Advisor
August 6, 2023

Question is not clear. Do you have requirements to filter the file type while doing the upload?

HuiDeShaoAuthorAccepted solution
Level 4
August 7, 2023