drag-drop-file
TypeScript icon, indicating that this package has built-in type declarations

0.2.7 • Public • Published

Upload file using drag-drop

drag-drop-file implementation for get file on drag-drop as well as select file

This module works with angular 7.x

DEMO

You can check the DEMO here

Installation

npm i drag-drop-file

Usage

Module:

Import DragDropFileModule module in your module

import { DragDropFileModule } from 'drag-drop-file'
 
@NgModule({
  imports: [ DragDropFileModule ]
})

Component

  1. Component html file
<lib-drag-drop-file (filesDropped)="drop($event)" [lable]="'Upload file'" ></lib-drag-drop-file>
 
  1. Component ts file
 drop(files) {
    console.log(files, '>>>>>>>>>>>') //file list
  }
}
 
 
## License
 
MIT

Package Sidebar

Install

npm i drag-drop-file

Weekly Downloads

2

Version

0.2.7

License

MIT

Unpacked Size

57.8 kB

Total Files

26

Last publish

Collaborators

  • vashramberani