0

我正在使用 ng2-file-upload 在 Post api 中发送文件。所以当我在发送之前打印文件的结构时,它看起来像下面的结构

在此处输入图像描述

但是,正如您所看到的,当我将它发送到一个 api 时出现的错误

 this.ocrService.uploadDocument(doc).subscribe(response => {
   f.resetForm();
   this.router.navigate(['/ocr']);
  });

我在后端使用烧瓶,在前端使用四角。我已经试过了

let doc = JSON.stringify(this.document)

但它在这一行也显示错误。请帮忙

4

0 回答 0