HTML and CSS Reference
Listing 3.17. app.js—Allowing users to import files by dropping them in the application
Try it out!
With this code added to your app, try it out by dragging an HTML file from your computer
into the designated drop zone. If a file with the same name doesn't exist, it should be suc-
cessfully imported into the filesystem, just as if you had manually selected the file using
the regular file <input> dialog box. You can even drag multiple files into the application
at a time. Next, you'll wrap things up by enabling users to export files by dragging them
out of the application.
3.4.2. Dragging files out of an application for export