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
user199727 4 months 2021-01-01T11:10:54-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse