上传文件时无法获取完整地址 [英] Can't get the complete address while uploading a file

查看:96
本文介绍了上传文件时无法获取完整地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想把邮件作为附件从HTML页面发送到邮件服务器,但是每当我从HTML页面上传任何文件时,我都没有收到完整的地址。我只是得到它的最终名称。如何启用我的HTML页面来追踪我的文件的完整地址?我必须为它做特别的事情吗?

解决方案

您无法获取上传文件的完整路径。这是一种安全风险,因为浏览器迟迟没有被封锁。

I want to send the mail as an attachment from HTML pages to mail server, but whenever I upload any file from HTML page, I'm not getting its complete address. I'm just getting its end name. How can I enable my HTML page to track down the complete address of my file? Do I have to do anything special for it?

解决方案

You are not able to get the full path of the uploaded file. That is a security risk that browsers have been clamping down as of late.

这篇关于上传文件时无法获取完整地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆