Filenames are hashed in Moodle and store to moodledata, the file path uses the hashed result as well. So the Explanation example 1 seems not quite appropriate to Moodle. Check the Moodle development File API, you will have a better understanding.
Security and privacy
Vulnerabilities in Moodle code scan
This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.