Angular2+html5 drag and drop local files

  1. want to implement a function of dragging local files to the screen

have no clue at all

<div><span>{{filename}}</span> </div>

probably drag the local file to the specified area on the screen, and then save the path and file name of the dragged file and display it on the screen

May.26,2022

I used the drag-and-drop feature in ng2-file-upload to solve this problem

Menu