Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Upload attachment using JavaScript and REST from Server

Jan Thorsplass
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 24, 2020

I'm struggling to find examples for fileUpload to Jira Issue from JavaScript.
Currently working on an integration and this is running as a service in background.

JavaScript doesn't have any simple Multipart entity builder, neither do I have any FormData to use.

I have the name/type/size/binaryvalue of the attachment object but are noe able to create a multipart/form-data message that is accepted.

Response is totally empty - only [].  If I remove the content-type I'll get http 415 so it's doing something, but not uploading.

0 answers

Suggest an answer

Log in or Sign up to answer