Forums

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

Add attachment using file content

Deleted user March 28, 2019

Hi,

I'm trying to add a file via API to an issue. I'm using Microsoft Flow to make my calls and there is no dedicated 'file' value like there is in Postman so everything has to be put into the headers and body. Also the file that I'm uploading does not exist online rather I need to create the file with the file content.

For example here is a call I have tried from Postman:

2019-03-28_1643.png2019-03-28_1643_001.png

 

This results in the following 500 server error:

<message>org.apache.commons.fileupload.FileUploadException: Stream ended unexpectedly</message>

 

This is how the same call looks in MS Flow:

 

2019-03-28_1649.png

 

Please advise

Thanks,

Sam

1 answer

1 vote
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 10, 2019

Hi @[deleted] , 

 

I believe I have already answered you in: https://community.atlassian.com/t5/Jira-questions/Attachment-not-created/qaq-p/1047753

 

However, looking at the POSTMAN screenshot, I can see that indeed you are not passing the file. See below screenshot for details:

POSTMAN-attachment.jpg

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events