I want to rename my assets when they are upload. The goal is to remove all illegal characters.
I have already the perfect PHP code for this job, but all I need is to find a way to execute this code each time an asset is uploaded.
For example, if my customers upload the file “Céline is beautiful.jpg”, it should be automatically renamed “celine-is-beautiful.jpg”. And when I look at the tab Assets, the file should be saved as “celine-is-beautiful.jpg”, not “Céline is beautiful.jpg”.
So no more worries about space, illegal characters, ect.
Can you help me?