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.