Upload GIF image into dam programmatically AEM

Avatar

Avatar

santosh10899

Avatar

santosh10899

santosh10899

07-08-2018

Hi,

I'm trying to upload external gif image programmatically using com.day.cq.dam.api.AssetManager api but it is not working as expected. i'm able to upload external jpg and png images.

example : Fat Cat Success GIF - Find & Share on GIPHY

For above gif content type is html not gif  is that is the issue?.

Can anyone help me with this, please?

Thanks,

Santosh

Replies

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.1K

Correct Reply

839

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.1K

Correct Reply

839
Arun_Patidar
MVP

07-08-2018

Hi,

For me below code is working for jpeg and gif.

aem63app-repo/UploadAssets.java at master · arunpatidar02/aem63app-repo · GitHub

I am succesfully able to upload gif and used in page as well.

for image you've share is video, not an gif. You can try Busy Chis Sweet Home GIF - Find & Share on GIPHY

Screen Shot 2018-08-07 at 2.52.35 PM.png

Thanks
Arun

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

07-08-2018

Uploading Assets typically involve writing a Sling Servlet and use the AEM Asset Manager API. See this article - Adobe Experience Manager Help | Uploading files to Adobe Experience Manager DAM using AssetManager A...

Avatar

Avatar

Jitendra_S_Toma

Avatar

Jitendra_S_Toma

Jitendra_S_Toma

07-08-2018

Santhosh,

Can you tell us what is not working as per your expectation? Does post request not go through? Any error log you see in the response?