当我尝试上传( .url )文件时,它会更改文件名和文件路径。 它将从Internet临时文件地址获取路径。
我想获得原始文件名和原始文件路径。
请帮帮我。
while i am try to upload (.url) file at that time it changes file name as well as file path. it will takes path from Internet Temporary File address.
i want to get original file name and original file path.
please Help me.
最满意答案
您无法从文件输入中获取原始文件名或路径。 它们被隐藏起来以保护用户的隐私和安全(其文件系统的结构不是他们与之交互的网站的业务)。
文件输入的目的是允许提交文件的内容 ,而不是文件的元数据。
You can't get the original file name or path from a file input. They are obscured to protect the user's privacy and security (the structure of their file system is not the business of websites they interact with).
The purpose of a file input is to allow the content of a file to be submitted, not meta data about the file.
更多推荐
发布评论