Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

`At least one attachment file must be included` when uploading via rest api

Zhenye Na November 26, 2019

I go this error when I use the rest api call to upload an attachment

 

I have use the following script to do it

 

headers = {"X-Atlassian-Token""no-check"}
with open(image, 'rb') as f:
res = requests.post(
url,
headers=headers,
files={image:f},
auth=some_auth_here
)

 

I once used the curl command and it works, but not for python scripts. Am I missing some point here?

 

 

----------------

 

problem solved

 

 

2 answers

1 accepted

0 votes
Answer accepted
Zhenye Na December 3, 2019

solved

Moises Rizo August 12, 2020

how?

0 votes
Ako Tulu October 6, 2022

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events