Hi All,
It's something we are seeing up for restricting certain file types in 6.2.
Solved! Go to Solution.
Views
Replies
Total Likes
You can use Apache Sling - MIME Type Support (commons.mime and commons.contentdetection) in AEM.
To access asset's mimetype, use the API Asset (Adobe CQ 5.6.1 Java Documentation 5.6.1 API)
Views
Replies
Total Likes
You can use Apache Sling - MIME Type Support (commons.mime and commons.contentdetection) in AEM.
To access asset's mimetype, use the API Asset (Adobe CQ 5.6.1 Java Documentation 5.6.1 API)
Views
Replies
Total Likes
I wanted a java/servlet function which extracts the mimeType of a file that we are putting for upload
Views
Replies
Total Likes
-> I wanted a java/servlet function which extracts the mimeType of a file that we are putting for upload
AEM Assets already extracts Mimetype and persist under asset's metadata:
/content/dam/test.jpg/jcr:content/metadata/dam:MIMEtype
In Servlet, you could use the service as I have mentioned[0] to detect mime type from an input stream of the file (sourced by TIKA library).
[0]Apache Sling - MIME Type Support (commons.mime and commons.contentdetection)
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies