How to remove the white spaces in dam assets while uploading

Avatar

Avatar
Validate 1
Level 2
cnur24357457
Level 2

Likes

4 likes

Total Posts

31 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Validate 1
Level 2
cnur24357457
Level 2

Likes

4 likes

Total Posts

31 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
cnur24357457
Level 2

24-07-2017

How to remove the white spaces in dam assets while uploading

when author uploads an image with spaces say (adobe forum.jpg) is there any way the image uploaded as adobeforum.jpg(adobe-forum.jpg)

Accepted Solutions (1)

Accepted Solutions (1)

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

24-07-2017

You need to write a custom servlet that uses the AssetManager API as discussed here: Scott's Digital Community: Uploading files to Adobe Experience Manager DAM using AssetManager API

In your servlet - write Java app logic to remove spaces in the file name.

Answers (4)

Answers (4)

Avatar

Avatar
Validate 1
Level 5
viveksachdeva
Level 5

Likes

52 likes

Total Posts

225 posts

Correct reply

35 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile

Avatar
Validate 1
Level 5
viveksachdeva
Level 5

Likes

52 likes

Total Posts

225 posts

Correct reply

35 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile
viveksachdeva
Level 5

30-07-2017

I think its better to add a process step to "DAM Asset Update" workflow in the beginning, so before any other action is performed on the asset, it would be renamed, if needed and then normal workflow model would follow

Avatar

Avatar
Level 1
prakashiyer1991
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
prakashiyer1991
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
View profile
prakashiyer1991
Level 1

16-04-2018

Hey,

I am facing the same issue and would like to add this step to the DAM update asset workflow, but upon adding the process step I am unable to find a step which will rename the asset and remove spaces.

Can you please elaborate and help me out.

Regards,

Prakash Iyer

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

06-03-2018

Since we posted that answer - we have done WORKFLOW content with assets -- http://scottsdigitalcommunity.blogspot.ca/2018/02/modifying-digital-assets-using-adobe.html

Scott's Digital Community: Modifying Digital Assets using Adobe Experience Manager Workflows

Notice that using Workflows - you can get at the asset and its binary data. Now you can modify the name, place the asset in different folders, etc.

Also - we have an ATCE on using Workflow APIs -- Scott's Digital Community: Ask the AEM Community Experts for Feb 2018

Avatar

Avatar
Level 1
skrosby
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Level 1
skrosby
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
skrosby
Level 1

06-03-2018

Unfortunately, the Adobe Desktop Companion App allows DAM users to upload assets with spaces.  The workflow idea might work for uploads.