Upload GIF image into dam programmatically AEM

Avatar

Avatar
Ignite 3
Level 1
santosh10899
Level 1

Like

1 like

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Ignite 3
Ignite 1
Give Back
Boost 1
View profile

Avatar
Ignite 3
Level 1
santosh10899
Level 1

Like

1 like

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Ignite 3
Ignite 1
Give Back
Boost 1
View profile
santosh10899
Level 1

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
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,318 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,318 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
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
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

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
Validate 1
Level 7
Jitendra_S_Toma
Level 7

Likes

76 likes

Total Posts

617 posts

Correct reply

84 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Validate 1
Level 7
Jitendra_S_Toma
Level 7

Likes

76 likes

Total Posts

617 posts

Correct reply

84 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
Jitendra_S_Toma
Level 7

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?