Skip to content

Instantly share code, notes, and snippets.

@bobbyg603
Last active May 9, 2022 13:08
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/29640d977cfabb52a14d22ae8937e56d to your computer and use it in GitHub Desktop.
Save bobbyg603/29640d977cfabb52a14d22ae8937e56d to your computer and use it in GitHub Desktop.
File Uploads with Angular and Express
from(files)
.pipe(
mergeMap(selectedFile => {
const fileEntry = selectedFile.fileEntry as FileSystemFileEntry;
const observableFactory = bindCallback(fileEntry.file) as any;
const file$ = observableFactory.call(fileEntry) as Observable<File>;
return file$;
})
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment