In https://laravel.com/docs/9.x/filesystem#file-uploads I read as file custom file uploading :
However, keep in mind that the getClientOriginalName and getClientOriginalExtension methods are considered unsafe,
as the file name and extension may be tampered with by a malicious user. For this reason, you should typically prefer the
hashName and extension methods to get a name and an extension for the given file upload:
I do not like using of hashName I would prefer original name, making it safe. I wonder what how file name can be unsafe ? I know that say login/username can be used to bypass login procedure. But File name ? If it can be unsafe, how to modify ot to make safe ?
Thanks in advance!