Giter Site home page Giter Site logo

Comments (7)

IronBlood avatar IronBlood commented on July 24, 2024

codereview task

Coneain/html5- by @Coneain

from bmybbs.

Liu-Ameng avatar Liu-Ameng commented on July 24, 2024

有一点问题吧,Chrome下路径显示不正确,形如:
路径:blob:null/32b8925b-e881-47f0-b6a9-58ec29a64d17

IE(IE11)下无法使用。

from bmybbs.

IronBlood avatar IronBlood commented on July 24, 2024

会不会各个浏览器的机制不同?

看下这篇讨论?http://stackoverflow.com/questions/2677565/how-to-drag-and-drop-file-attachment-into-the-browser

from bmybbs.

Liu-Ameng avatar Liu-Ameng commented on July 24, 2024

嗯,使用类库应该是个好方法。

@Coneain代码中使用的 window.webkitURL.createObjectURL(fileList[0]); 并不被IE支持。

from bmybbs.

Coneain avatar Coneain commented on July 24, 2024

@Liu-Ameng 我之后用条件语句修改增加ie支持,利用activexobject就可以读取完整路径了。至于浏览器,我记得 chrome, firefox,opera都是基于mozilla的,只有ie最特殊,它自己有自己的内核。。

from bmybbs.

Liu-Ameng avatar Liu-Ameng commented on July 24, 2024

Re: @Coneain 恩。。挺好的。关于浏览器内核其实是这样的

题外话,其实吧,我觉得获得文件路径也没啥实际意义,目的应该是文件内容。先拿到文件名再去读文件好像多做了一步。╮(╯▽╰)╭

from bmybbs.

Coneain avatar Coneain commented on July 24, 2024

https://github.com/Coneain/html5-/blob/master/drag_e11
新版本,已修复e11下无法运行的问题
@IronBlood @Liu-Ameng

from bmybbs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.