Skip to content

Instantly share code, notes, and snippets.

@jayprajapati857
Created December 20, 2020 15:32
Show Gist options
  • Save jayprajapati857/f1bf26644d0fd144a00f4d8deab2dc31 to your computer and use it in GitHub Desktop.
Save jayprajapati857/f1bf26644d0fd144a00f4d8deab2dc31 to your computer and use it in GitHub Desktop.
Html sample for ngx-uploader-directive
<div class="drop-container" ngxFileDrop [options]="options" (uploadOutput)="onUploadOutput($event)"
[uploadInput]="uploadInput" [ngClass]="{ 'is-drop-over': dragOver }">
<h1>Drag &amp; Drop</h1>
</div>
<label class="upload-button">
<input type="file" ngxFileSelect [options]="options" (uploadOutput)="onUploadOutput($event)"
[uploadInput]="uploadInput" multiple>
or choose file(s)
</label>
<button type="button" class="start-upload-btn" (click)="startUpload()">
Start Upload
</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment