How to Realize Drag and Drop Folder Upload for WEB Pages

  node.js, question

I want to realize such a thing, similar to the effect inside the cloud disk, dragging a local directory to the page.
But instead of uploading the files in the folder, you just need to get the local path of the folder. What technology or control is used to implement it?


Or directly browse through HTML to select the physical path of the folder



LookelectronDocument for

dialog.showOpenDialog([browserWindow, ]options[, callback])

  • browserWindowBrowserWindow (optional)

  • optionsObject

    • titleString

    • defaultPathString

    • filtersArray

    • propertiesArray – Contains which features the dialog should use, can containopenFile,openDirectory,multiSelectionsandcreateDirectory

  • callbackFunction (optional)