Forums

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

Add attachment using file content

inoubli nader
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!
October 16, 2025

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.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,

1 answer

0 votes
Matteo Vecchiato
Community Champion
October 17, 2025

Hi @inoubli nader ,

Welcome to Atlassian community.

I suggest to check in Postman the corresponding code source to generate a http call.

In the right side of Postman you can see the different options of code translations (java, http, ...)

I hope it helps.

Regards 

Suggest an answer

Log in or Sign up to answer