输入类型=“文件”更改文件名(Input type=“file” changes file name)

系统教程 行业动态 更新时间:2024-06-14 16:55:57
输入类型=“文件”更改文件名(Input type=“file” changes file name)

当我尝试上传( .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.

更多推荐

本文发布于:2023-04-10 11:19:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/4c76280e438ab56496c16930deb5e8b6.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件名   类型   文件   file   Input

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!