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)
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.
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
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.
Since we posted that answer - we have done WORKFLOW content with assets -- http://scottsdigitalcommunity.blogspot.ca/2018/02/modifying-digital-assets-using-adobe.html
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
Unfortunately, the Adobe Desktop Companion App allows DAM users to upload assets with spaces. The workflow idea might work for uploads.