In our AEM 6.4.4 installation audio files (mp3) uploaded to a DAM folder cannot be selected in the asset browser (after upgrading from AEM 6.3 to 6.4).
In the "Assets" dropdown we can only select the types "Images", "Videos", "Documents" etc. but not "Audio".
We can however add Audio to the list of file types for documents for example ( /libs/cq/gui/content/common/options/predicates/filetypes ).
But this only adds these file types to the list of "Document" types for example.
The problem is that the resulting xhr request when selecting "documents" in the asset browser has a list of mime types that does not contain any mime type for audio files (e.g. audio/mpeg).
In the search form "Assets Admin Search Rail" we can only add file types, but this again does not impact the list of mime types used in the xhr requests:
When adding the audio/mpeg mime type to the mimetypes parameter the audio files show up in the result.
How can audio files be added to the asset browser?
Where can we find the list of mime types that are sent with the /bin/wcm/contentfinder/asset/view.html request?
If you want to have new filter or modify existing one to list more document types, we can modify it as mentioned below. Please follow below:
1. Create an overlay of the documents filter as
/libs/cq/gui/components/authoring/editors/clientlibs/core/js/assetController/document/documentController.js
2. Add the mimetype to list of types that should be allowed.
3. Please edit the below line in the js file so that it will allow to list "zip" file in the Assets finder.
'mimeType': 'application/zip,application/vnd.openxmlformats,application/msword,application/vnd.ms-powerpoint,application/mspowerpoint,application/powerpoint,application/x-mspowerpoint,application/x-msexcel,application/x-excel,application/excel,application/vnd.ms-excel,application/pdf,application/vnd.openxmlformats-officedocument.wordprocessingml.document',
This should work.
Regards,
Shreya Gupta
Hello Shreya,
We have tested your solution and it seems to work for us.
Thanks and cheers
Robert
Views
Replies
Total Likes
Hi Shreya, This really save my time. This is awemsoe.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies