Expand my Community achievements bar.

Failed to upload .exe file in DAM

Avatar

Level 4

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

18 Replies

Avatar

Level 7

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

Avatar

Level 10

The DAM conrains assets like images and videos. An EXE file is not a supported file.

But we uploaded it in the past but for some reason it is failing.

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

Avatar

Employee Advisor

This only indicates that the upload failed. Have you checked the error.log for relevant messages?

Jörg

Avatar

Level 4

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

Tried to upload the file directly, also by making a zip folder. But still the same result. 

Avatar

Level 10

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, 

Avatar

Employee Advisor

Hi,

is this the only message or is this part of a full-fledged exception including a stacktrace? Please post this as well.

Avatar

Administrator

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



Kautuk Sahni

Avatar

Level 10

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. 

Even in My local I am able to upload it. But it is not happening in other test and Prod environment. 

Avatar

Employee Advisor

Please make sure that you have the same hotfix level on your local instance as on the higher stages.

Jörg

Avatar

Level 4

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

Avatar

Employee Advisor

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