This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Adding document/file to an existing documents via REST API

Hi,

Hi Ma'am/ Sir,

I am implementing a feature which uploads image to an existing document using REST API. I am using JavaScript  to code the said feature. I am having a problem in uploading the file to the target document. Every time I call the API endpoint for the file upload it doesn't upload the file I uploaded but instead it show an uploaded file which name is unnamed. See screenshot of the code

   

Here is the screenshot of the unnamed file that gets uploaded instead