How to remove the white spaces in dam assets while uploading | Community
Skip to main content
cnur24357457
Level 2
July 24, 2017
Solved

How to remove the white spaces in dam assets while uploading

  • July 24, 2017
  • 5 replies
  • 3428 views

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)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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.

5 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
July 24, 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.

viveksachdeva
Community Advisor
Community Advisor
July 31, 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

skrosby
March 6, 2018

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

smacdonald2008
Level 10
March 6, 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

Level 2
June 21, 2021

Hi @smacdonald2008,

The links above redirect to your new blog. Is there any way to access the information that was on those pages?

Kind regards,
David

prakashiyer1991
April 16, 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