Skip to content

Instantly share code, notes, and snippets.

@bobbyg603
Last active May 9, 2022 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobbyg603/924056848d5e0bb7e9ebedce7adcb63a to your computer and use it in GitHub Desktop.
Save bobbyg603/924056848d5e0bb7e9ebedce7adcb63a to your computer and use it in GitHub Desktop.
File Uploads with Angular and Express
import { Component, EventEmitter, Output } from '@angular/core';
import { NgxFileDropEntry } from '@bugsplat/ngx-file-drop';
@Component({
selector: 'app-file-drop',
templateUrl: './file-drop.component.html',
styleUrls: ['./file-drop.component.scss']
})
export class FileDrop {
@Output() filesDropped = new EventEmitter<NgxFileDropEntry[]>();
onFilesDropped(files: NgxFileDropEntry[]) {
this.filesDropped.next(files);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment