Trying to rename a file upload as the hash of file content on wordpress
Question
Trying to rename a file upload as the hash of file content on wordpress, not the file name as most tutorials are shown online. Which add_filter or how do I intercept the "content" of uploaded file so I can md5 it?
I would like the filename to be the md5 hash of the file content, for all sorts of file be it images or pdf or whatever.
0
4 weeks
0 Answers
0 views
0
Leave an answer
You must login or register to add a new answer .