In this lesson, learn how to implement drag-and-drop file uploads WITHOUT any additional JavaScript. This approach hinges on the file input’s natural behavior: When dragging a file over a file input, it fires the change event just like when you click on it. All that’s left then to make things more modern is to hide the input and stretch it to fill the bounds of a drag-and-drop styled div.
We end up the video, having a little fun with an AI generated svg icon.
Links