Comments (1)
The parameter is an array of files, not a file. Try this:
dragDrop('#target', function (files) {
console.log('Here is the first dropped file ' + files[0].name);
});
from drag-drop.
Related Issues (20)
- How about onDragEnter handler? HOT 2
- FullPath always on root directory HOT 6
- Can't apply drag & drop to class HOT 3
- drag-drop/buffer drop "fullPath" property HOT 3
- FullPath always on root directory using electron HOT 1
- Can't drag & drop with nw and frame disabled HOT 3
- Large files crash the browser (Chromium) HOT 1
- Empty type for some file types in Chrome HOT 4
- Example with POST data? HOT 2
- Only fallback to proprietary webkit FS API if standard API is not available HOT 1
- Fix regressions in 3.0.0 HOT 3
- HTML5 drag and drop API link in README.md file links to wrong page. HOT 1
- OSX Safari 11.1.2: drag class not appended on dragover HOT 4
- Directory objects lack path property HOT 1
- Continue reading entries broken HOT 2
- drag-drop.min.js missing from latest release HOT 4
- Support for IE HOT 1
- FileList and directories are empty in Chrome
- Standalone script bundler no longer works HOT 1
- How to get the original path of a dragged file
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 drag-drop.