swuecho / redashX

0 stars 0 forks source link

tap #35

Open swuecho opened 1 year ago

swuecho commented 1 year ago
httpClient.post(uploadUrl, formData)
  .pipe(
    tap(data => observer.next(data)),
    catchError(error => {
      observer.error(error);
      throw error;
    }),
    finalize(() => observer.complete())
  )
  .subscribe();