# Corrupted attachment file is uploaded

**URL:** <https://community.developer.atlassian.com/t/corrupted-attachment-file-is-uploaded/54215>\
**Category:** Forge UI Kit and Custom UI\
**Tags:** forge-bridge, attachment, jira-cloud\
**Created:** [December 7, 2021, 9:27am UTC](https://community.developer.atlassian.com/t/corrupted-attachment-file-is-uploaded/54215 "2021-12-07T09:27:20Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mstrelex](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/mstrelex/32/43921_2.png) [@mstrelex](https://community.developer.atlassian.com/u/mstrelex)\
**Post date:** [December 8, 2021, 1:37pm UTC](https://community.developer.atlassian.com/t/corrupted-attachment-file-is-uploaded/54215/4 "2021-12-08T13:37:31Z")

</div>

@LashaniPerera

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:

> [@How to add an attachment to issue in Forge?](https://community.developer.atlassian.com/t/how-to-add-an-attachment-to-issue-in-forge/51837):
>
> Hi Community! I’ve tried a lot to upload attachment to jira issue in my forge app. My forge app recieves base64 encoded file from custom ui function. Here’s example of my function: const form = new FormData(); form.append("file", "file") const response = await api.asUser().requestJira(route`/rest/api/2/issue/${issueId}/attachments`, { method: 'POST', body: form, headers: { 'Accept': 'application/json', 'X-Atlassian-Token': 'no-check', } }); After launching …

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?

---

_[View the full topic](https://community.developer.atlassian.com/t/corrupted-attachment-file-is-uploaded/54215)._
