File Uploader
Pages Drag and Drop File Uploader
Importing
import { pgUploadModule } from '../@pages/components/upload/upload.module';
@NgModule({
imports: [pgUploadModule,...]
})
export class AppModule(){}How to use
<pg-upload
Type="drag"
[Multiple]="true"
[Limit]="2"
Action="https://jsonplaceholder.typicode.com/posts/"
(Change)="handleChange($event)"
extraClass="dropzone"
progressType="circle"
>
<div class="d-flex flex-column align-items-center">
<h4 class="semi-bold no-margin">Drop files to Upload</h4>
<p>or click here</p>
</div>
</pg-upload> //Fileupload HandleChange
handleChange(event){ }API
Last updated