File Uploader

Pages Drag and Drop File Uploader

pg-upload is a fork of NG-ZORRO implementation of Dropzone Initial credits go to the author

Importing

First import it to your app module or any submodule as you wish

import { pgUploadModule } from '../@pages/components/upload/upload.module';
@NgModule({
  imports: [pgUploadModule,...]
})
export class AppModule(){}

How to use

Basic Select with Search

<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>

API

The server upload interface implementation can refer to jQuery-File-Upload .

Last updated