Hello, what happens is that I need that the assets have a format in the name, this format is that the user can put the name he wants to the asset as long as it doesn't contain spaces, in case of containing space, the spaces must be replaced by micro (the symbol - ).
For example, let's say the user uploads an asset called:
my asset.jpg
Then when he uploads it to DAM at that time the name should be changed as follows:
my-asset.jpg
So that when the asset is finished uploading and processing, it will be displayed in the AEM DAM folder.
my-asset.jpg instead of my asset.jpg
How can I do that?
If it's possible to do it in my project folder it would be nice
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Aaron_Dempwolff,
It is not working because you are using /libs instead of /apps in your project structure. You also have to update filter.xml file to include your custom file, /apps/dam/gui/coral/components/commons/fileupload/clientlibs/fileupload/js
The structure, and filter xml, are presented below
Hello @Aaron_Dempwolff,
You can refer to this question: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/rename-asset-file-names-on...
See if this helps..
Thanks
Do you know if is possible to do it in the AEM project folder?
Hello @Aaron_Dempwolff
We should be able to overlay the file in /apps folder "/apps/dam/gui/coral/components/commons/fileupload/clientlibs/fileupload/js/fileupload.js".
Code can be checked in to ui.apps.
It has a following line. Please try adding space to it. Hopefully it should work
_ILLEGAL_FILENAME_CHARS: [ "©", "/", ":", "[", "\\", "]", "|", "#", "%", "{", "}", "?", "&" ],
I try to add it in the path that you tell me on my code, I create the folders of the path:
/dam/gui/coral/components/commons/fileupload/clientlibs/fileupload/js/
and create the js file with the change but it doesn't show the new change after the build.
I'm doing somethin wrong?, is the path that I did or something like that?
Please try adding js.txt as well to /apps. Also, please use incognito mode to assure that the file is not a cached one
Still doesn't work, I add even the css and js files and still not updating the new changes.
Hi @Aaron_Dempwolff,
It is not working because you are using /libs instead of /apps in your project structure. You also have to update filter.xml file to include your custom file, /apps/dam/gui/coral/components/commons/fileupload/clientlibs/fileupload/js
The structure, and filter xml, are presented below