如何使自己的文件上传使用HTML和JavaScript [英] How to make own file upload using HTML and javascript

查看:108
本文介绍了如何使自己的文件上传使用HTML和JavaScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要用HTML和Javascript,因为内置的文件上传不显示文件的完整路径,使新的文件上传字段

I need to make new own file upload field using HTML and Javascript since Built-In file upload not showing full path of the file

我需要让类似的使用按钮和文本框文件上传

I need to make it similar to file upload by using button and textbox

请帮忙解决这个问题。

推荐答案

您不能。

有安全方面的考虑浏览器必须坚持和现在有办法解决这一问题。

There are security considerations browsers must adhere to and there is now way around that.

FYI这也是为什么火狐不允许拖放到一个文件中的字段。

FYI this is also why Firefox doesn't allow drag and drop into a file field.

这篇关于如何使自己的文件上传使用HTML和JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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