Comments (2)
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.
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)
- Using FileDrop as standard input element HOT 4
- File without parameter name in post request HOT 1
- Not Receiving $_FILE in PHP HOT 2
- [questions] Status of this project / plans HOT 2
- Upload but not saved HOT 7
- Documentation/progressbar, suggestion of adding comment or CCS for demo
- file.type seems doesn't work for several files HOT 8
- Traditional ASP Forms Application Usage HOT 1
- Can I get returned data from the `sendTo()` function? HOT 1
- Change Url Dynamically HOT 3
- Clear the drop area HOT 1
- File Drop js is not working in strict mode
- Please add a license
- Files of the same name are ignored when uploading directories HOT 2
- Click to upload only allowed once HOT 2
- move_uploaded_file HOT 3
- MIME type before upload? HOT 1
- request function, fd.serialize(form) HOT 1
- file name problem HOT 1
- Publish to NPM.js HOT 1
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 filedrop.