I try to upload a file to the attachments of a Confluence Page. Here is the code:
path="https://ctc-confluence.cochlear.com/rest/api/content/179999202/child/attachment";formdata = new FormData(); formdata.append('file', 'extratest.xlsx');formdata.append('data', s2ab(outData));fetch(path,{method: 'POST', 'X-Atlassian-Token': "nocheck", 'Content-Type':"application/octet-stream", body:formdata})
This results in the error: VM9:1 POST https://ctc-confluence.cochlear.com/rest/api/content/xxxxx/child/attachment net::ERR_CONNECTION_REFUSED
What could be wrong?
Because on the intranet, Confluence resides on http://, and not https://
It looks like you're new here. Sign in or register to get started.