Last active
May 9, 2022 13:08
-
-
Save bobbyg603/29640d977cfabb52a14d22ae8937e56d to your computer and use it in GitHub Desktop.
File Uploads with Angular and Express
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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