I have a blog in wordpress where I upload multiples images per post, but It causing me and issue.
If the filename have whitespaces, special chars or something like that, It broke the upload. Also this issue is overwriting me the files with the same name. For example: First I upload a photo whose filename is "car.png". Then i upload other image with the same name, "car.png", It show me the first photo that I was uploaded.
I want to rename the files previuosly the upload with a date hash (year, month, day, hour, minute and second when It was uploaded).
How can I do this with a hook or a codex function?
Regards.