Skip to content

Files

Latest commit

7ade796 · Apr 17, 2020

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 17, 2020
Apr 17, 2020
Apr 17, 2020
Apr 17, 2020

Drag & Drop images with vanilla JS

This projects aims to utilize the Drag and Drop api It use four events dragenter dragleave dragover drop to handle files. As a fallback it use input type = file. It can handle multiple files at time, with letting user preview it before the upload. It is used by various browser based tools like imgeditor, canva etc.

Challenges

  • Drag and Drop Api
  • file previewing
  • Ajax
  • Async file handling
  • cross browser file upload