打扰各位,请教一个问题
我写了一个简单的html 文件选择页面
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Upload</title>
</head>
<body>
<input id="file-input" type="file" />
<script>
const fileInput = document.querySelector('#file-input');
fileInput.onchange = function(){
console.log('file name:', this.value)
}
</script>
</body>
</html>
然后我创建两个window快捷方式的文件上传
(桌面 ---》鼠标右键---》新建 ---》快捷方式)
1、第一个快捷方式
目标对象位置是https://www.baidu.com/
该快捷方式取名 www.baidu.com
选择该文件上传,回调输出 C:\fakepath\www.baidu.com.url
这是我期待的,ok
2、第二个快捷方式
目标对象位置是 https://www.google.com/
该快捷方式取名 www.google.com
选择该文件上传,回调输出 C:\fakepath\TQCJEVEM
貌似一种HASH,很奇怪;
问题:
这个是怎么发生的,是操作系统的行为、浏览器的行为还是什么协议的行为,有发生此行为原因的说明出处吗
望得帮助,非常感谢!