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://
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.