GithubHelp home page GithubHelp logo

Comments (2)

ProgerXP avatar ProgerXP commented on June 2, 2024

Dragging stuff out of an application is tricky and depends on that application. It uses Windows drag & drop mechanism but it has many flavors. For example, sometimes it would create a temporary file so that drag & drop occurs in two phases: (1) source application saves data to a temporary file on disk, (2) destination application reads that file as if it was dropped directly by the user. If it's this case it usually universally works. However, often direct drag & drop is used so that the source app attempts to transfer the file directly to the destination. This is incompatible in many cases but is more optimal in terms of performance (no need for any temporary files and disk IO).

So to sum up: if you're working with the browser it's best to drop files that are already written to disk. This way it will work 100%. If you're dragging a file that's coming from some other app it might work but also might not (actually, it probably won't work).

from filedrop.

andy194 avatar andy194 commented on June 2, 2024

I've been investigating this too. I've found that browsers expect CF_HDROP but Outlook supplies CFSTR_FILECONTENTS & CFSTR_FILEDESCRIPTOR, which browsers don't understand. The drop event is triggered in js code but there's no data that I can find. Lot's of advice on this out there is that the browser needs a custom plugin, but I believe that Microsoft are removing that option from Edge, preferring the Mozilla script mechanism for extensions.

The thing I'm looking into is that the Google search page does receive information from the drop event from Outlook and displays it.

from filedrop.

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.