Upload documents(pdf, word etc) in a body

Hi All,
I have a problem to add documents(pdf, word etc) to a body like

let body = {
        CompanyID: this.companyID,
        UserName: this.email,
        FullName: this.fullName,
        Email: this.email,
        Mobile: this.mobileNo,
        UserImage: this.base64Image,
        DocumentIDCard: this.IDcard // i want to upload a pdf/wordDcument by this
      }

is this possible to add my documents by a body(using Post Method)
please help

i suggest you to send file in base64 format if you use body in post method
or you can use multipart formadata and attach file in call

in my opinion second method is best for file approach