Forums

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

S3 presigned url downloads the file with a specific name, uploaded to jira is saving with diff name.

Arun T
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!
July 30, 2020

I have  a S3 pre signed url with response headers set to a specific file name. when used it browser it downloads with a specific name, but when used in JIRA rest api attachment upload, name is same as original name name not the name set in response headers.

1 answer

0 votes
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 4, 2020

Hello @Arun T ,

Thanks for reaching out, and I would be happy to take a look. 

It sounds like you are using the API endpoint "POST /rest/api/3/issue/{issueIdOrKey}/attachments" to upload an image but rather than using a local file as described in the documentation via the following:

-F "file=@{path/to/file}"

It sounds like you are using a remote location URL to a hosted image, Is this correct? 

A possibility is that there is some sort of authentication issue between the remote host store As the system is not designed to map to a remote URL and a workaround I would recomend setting up your script to download the image to a local temp file for re-upload to Jira rather than mapping to the remote location directly.

There is a good example of this process outlined as a PHP script in the following thread:

If this is not the case, can you please include an example of the Calls formatting so I can take a closer look.

Regards,
Earl

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events