Comments (7)
codereview task
from bmybbs.
有一点问题吧,Chrome下路径显示不正确,形如:
路径:blob:null/32b8925b-e881-47f0-b6a9-58ec29a64d17
IE(IE11)下无法使用。
from bmybbs.
会不会各个浏览器的机制不同?
看下这篇讨论?http://stackoverflow.com/questions/2677565/how-to-drag-and-drop-file-attachment-into-the-browser
from bmybbs.
嗯,使用类库应该是个好方法。
@Coneain代码中使用的 window.webkitURL.createObjectURL(fileList[0]);
并不被IE支持。
from bmybbs.
@Liu-Ameng 我之后用条件语句修改增加ie支持,利用activexobject就可以读取完整路径了。至于浏览器,我记得 chrome, firefox,opera都是基于mozilla的,只有ie最特殊,它自己有自己的内核。。
from bmybbs.
Re: @Coneain 恩。。挺好的。关于浏览器内核其实是这样的
题外话,其实吧,我觉得获得文件路径也没啥实际意义,目的应该是文件内容。先拿到文件名再去读文件好像多做了一步。╮(╯▽╰)╭
from bmybbs.
https://github.com/Coneain/html5-/blob/master/drag_e11
新版本,已修复e11下无法运行的问题
@IronBlood @Liu-Ameng
from bmybbs.
Related Issues (20)
- 版主无法创建封闭投票名单
- upload 疑似存在缺陷 HOT 1
- 移动话题到另一个版面的功能
- 增加分享到微信的功能 HOT 1
- 匿名版面默认使用匿名发文
- 更新 travis ci 脚本 HOT 1
- 将 captcha 编译、数据表创建、生成 captcha 的脚本添加到安装步骤中 HOT 1
- src/io.c 内联函数链接问题 HOT 1
- 兵马俑BBS账号注册系统出错 HOT 4
- [进站管理] 更新读取 PASSWDS 结构 HOT 1
- [进站管理] 字符串比较
- [进站管理] 修正结束表单的 API
- [进站管理] 使用相对路径跳转页面
- ytht_crypt 增加多线程安全的接口
- 修正 atthttpd 的 expires
- bootstrap 5.0.0-beta3 导致部分样式失效
- 转载功能失效 HOT 1
- 版面管理 y 功能键失效
- 用户注册后登录提示“错误的使用者账号”
- 向前辈们致敬 以及 BMYBBS 的后继者 “交大門” xjtu.men
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bmybbs.