'electron-react-boilerplate) How to create file download system using drag and drop

I'm creating file converter using electron-react-boilerplate. Although importing files was implemented with drag and drop, did not implement downloading files by drag and drop like when dragging a Google image search result.

https://www.electronjs.org/docs/latest/tutorial/native-file-drag-drop

I tried the above method, but it didn't work in electron-react-boilerplate environment.

Is there a way to get files in a specific path by drag and drop in the app?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source