Whenever I am trying to upload a .exe file after it has completed uploading I get the error failed to upload the file. Is this a known issue? Product version is AEM 6.1.
Getting the below error in DAM log :
POST /content/dam/lexmark/documents/filedownloads/y2016.createasset.html HTTP/1.1] com.day.cq.dam.core.impl.DamAdapterFactory Unable to adapt resource of sling:OrderedFolder to type com.day.cq.dam.api.Asset
Views
Replies
Total Likes
I think exe is not a supported format for DAM.
Here the lists of supported format: https://docs.adobe.com/docs/en/cq/5-6-1/dam/documented_platforms.html
Views
Replies
Total Likes
The DAM conrains assets like images and videos. An EXE file is not a supported file.
Views
Replies
Total Likes
here the docs related to your AEM version https://docs.adobe.com/docs/en/aem/6-1/administer/content/assets/assets-formats.html
Views
Replies
Total Likes
But we uploaded it in the past but for some reason it is failing.
Views
Replies
Total Likes
Probably you have all launcher disabled in the past and for this reason you can uploaded it.
But as i already say the exe is not supported.
https://docs.adobe.com/docs/en/aem/6-1/administer/content/assets/assets-formats.html
Views
Replies
Total Likes
This only indicates that the upload failed. Have you checked the error.log for relevant messages?
Jörg
Views
Replies
Total Likes
I am getting the error
POST /content/dam/lexmark/documents/filedownloads/y2016.createasset.html HTTP/1.1] com.day.cq.dam.core.impl.DamAdapterFactory Unable to adapt resource of sling:OrderedFolder to type com.day.cq.dam.api.Asset
Views
Replies
Total Likes
How are you trying to upload this file?
Views
Replies
Total Likes
Tried to upload the file directly, also by making a zip folder. But still the same result.
Views
Replies
Total Likes
I will look into this tomorrow - i just got back from AEM Evolve conference. I haver never tried to upload an EXE to the DAM - i will see if i can reproduce your issue,
Views
Replies
Total Likes
Sure.
Views
Replies
Total Likes
Hi,
is this the only message or is this part of a full-fledged exception including a stacktrace? Please post this as well.
Views
Replies
Total Likes
Hi
Can please explain the use-case of having .exe file in DAM ?
Coming back to the solution, as mentioned by "Jörg Hoh" please check the error in error.log file.
If the use-case it just to keep exe file in DAM and make it downloadable by providing download link to the page, then i would suggest you to make Zip file of exe and upload it in DAM.
This is reduce the size of the file and also zip is supported in AEM.
Docs link:- https://docs.adobe.com/docs/en/aem/6-2/administer/content/assets/assets-formats.html
I hope this would help you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
I am using Classic View and successfully uploaded a EXE:
Here you can see in the JCR:
However - from a functionality point of view - uploading EXE in the AEM DAM is not recommended.
Views
Replies
Total Likes
Even in My local I am able to upload it. But it is not happening in other test and Prod environment.
Views
Replies
Total Likes
Please make sure that you have the same hotfix level on your local instance as on the higher stages.
Jörg
Views
Replies
Total Likes
GET /content/dam/lexmark/documents/filedownloads/y2016.assets.json HTTP/1.1] com.day.cq.dam.core.impl.DamAdapterFactory Unable to adapt resource of sling:OrderedFolder to type com.day.cq.dam.api.Asset
07.09.2016 17:16:14.441 *DEBUG* [203.91.220.17 [1473268574440] GET /content/dam/lexmark/documents/filedownloads/y2016.assets.json HTTP/1.1] com.day.cq.dam.core.impl.DamAdapterFactory Unable to adapt resource of sling:OrderedFolder to type com.day.cq.dam.api.Asset
07.09.2016 17:16:14.441 *DEBUG* [203.91.220.17 [1473268574440] GET /content/dam/lexmark/documents/filedownloads/y2016.assets.json HTTP/1.1] com.day.cq.dam.core.impl.DamAdapterFactory Unable to adapt resource of sling:OrderedFolder to type com.day.cq.dam.api.Asset
07.09.2016 17:16:14.441 *DEBUG* [203.91.220.17 [1473268574440] GET /content/dam/lexmark/documents/filedownloads/y2016.assets.json HTTP/1.1] com.day.cq.dam.core.impl.DamAdapterFactory Unable to adapt resource of sling:OrderedFolder to type com.day.cq.dam.api.Asset
07.09.2016 17:16:14.441 *DEBUG* [203.91.220.17 [1473268574440] GET /content/dam/lexmark/documents/filedownloads/y2016.assets.json HTTP/1.1] com.day.cq.dam.core.impl.servlet.DamContentDispositionFilter checking for acceptance
07.09.2016 17:16:14.477 *DEBUG* [203.91.220.17 [1473268574440] GET /content/dam/lexmark/documents/filedownloads/y2016.assets.json HTTP/1.1] com.day.cq.dam.core.impl.DamAdapterFactory Unable to adapt resource of sling:OrderedFolder to type com.day.cq.dam.api.Asset
07.09.2016 17:16:14.477 *DEBUG* [203.91.220.17 [1473268574440] GET /content/dam/lexmark/documents/filedownloads/y2016.assets.json HTTP/1.1] com.day.cq.dam.core.impl.DamAdapterFactory Unable to adapt resource of sling:OrderedFolder to type com.day.cq.dam.api.Asset
Views
Replies
Total Likes
Please note, that the log entries you posted do not apply to an asset upload, they are all GET requests.
Regarding your problem I would recommend to get in touch with Daycare support. I already faced that problem myself as well but haven't had the time to follow up on it.
Jörg
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies