I’m trying to upload an attachment to a specific issue in my Custom UI app.
I’m using this endpoint in the Jira API.
I tried to upload it using resolve from @forge/bridge, but it doesn’t work. I saw here in the forum that someone suggested using the requestJira option. This option works fine for text files, but when I try to upload an image/pdf/etc, the file is uploaded but it’s corrupted. When I download the attachment and compare it with the original file that I uploaded, I can see that something is wrong with its encoding.
Hi @amityahav,
Thank you for reaching out!
We understood the issue and unfortunately we don’t have a solution to this at the moment and will be looking into it soon.
For Qn 2 : using resolver will not help here as they will be same underneath
Thanks for your quick response.
Are you sure that there’s nothing you can do about it? It’s a bit weird that I can’t upload files that are not text files without them being corrupted…
Is there any way I can control the file encoding? It’s a huge blocker for me.
Above is not an acceptable answer for a production framework bug report.
Basic functionality, such as file upload, should work.
Especially since it has been already reported in the past as broken:
I’ve verified that it works fine when triggering the REST API directly from the postman. It must be something that has to do with FaaS or the headers.
Would you mind checking again and providing us with a solution?