# Upload Attachment in Base64-Asana API

**URL:** <https://forum.asana.com/t/upload-attachment-in-base64-asana-api/903232>\
**Category:** API & Developers\
**Created:** [28 August 2024 08:51 UTC](https://forum.asana.com/t/upload-attachment-in-base64-asana-api/903232 "2024-08-28T08:51:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayushi\_Jain](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/ayushi_jain/32/252627_2.png) [@Ayushi\_Jain](https://forum.asana.com/u/Ayushi_Jain)\
**Post date:** [28 August 2024 08:51 UTC](https://forum.asana.com/t/upload-attachment-in-base64-asana-api/903232/1 "2024-08-28T08:51:16Z")

</div>

Hi Asana Team,

I am trying to send my file in base64 format through Asana Attachment API but my file is getting corrupt after uploading.  
My question is: Is there a form-data header I can use to tell Asana that the payload is base64 data? or any parameter to send in the request to tell Asana about the format?

I would really appreciate your help.  
Thanks,  
Ayushi

---

<div class="post-metadata">

**Author:** ![Daniel\_Perez](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/daniel_perez/32/277148_2.png) [@Daniel\_Perez](https://forum.asana.com/u/Daniel_Perez)\
**Post date:** [22 February 2025 05:42 UTC](https://forum.asana.com/t/upload-attachment-in-base64-asana-api/903232/2 "2025-02-22T05:42:45Z")

</div>

@Ayushi_Jain I’m actually having the same issue. Have you been able to find a solution? Thanks!

---

<div class="post-metadata">

**Author:** ![Ayushi\_Jain](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/ayushi_jain/32/252627_2.png) [@Ayushi\_Jain](https://forum.asana.com/u/Ayushi_Jain)\
**Post date:** [24 February 2025 11:23 UTC](https://forum.asana.com/t/upload-attachment-in-base64-asana-api/903232/3 "2025-02-24T11:23:12Z")

</div>

Hi @Daniel_Perez , No the attachment api shared in the document didn’t work for me. Instead I used **[https://app.asana.com/api/1.0/](https://app.asana.com/api/1.0/)/attachments** and sent the file as blob.

---

<div class="post-metadata">

**Author:** ![Ayushi\_Jain](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/ayushi_jain/32/252627_2.png) [@Ayushi\_Jain](https://forum.asana.com/u/Ayushi_Jain)\
**Post date:** [24 February 2025 11:23 UTC](https://forum.asana.com/t/upload-attachment-in-base64-asana-api/903232/4 "2025-02-24T11:23:46Z")

</div>

[https://app.asana.com/api/1.0/asanaTaskId/attachments](https://app.asana.com/api/1.0/asanaTaskId/attachments)

---

<div class="post-metadata">

**Author:** ![Daniel\_Perez](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/daniel_perez/32/277148_2.png) [@Daniel\_Perez](https://forum.asana.com/u/Daniel_Perez)\
**Post date:** [24 February 2025 18:58 UTC](https://forum.asana.com/t/upload-attachment-in-base64-asana-api/903232/5 "2025-02-24T18:58:27Z")

</div>

Hi @Ayushi_Jain , thanks! I will check to see if I can go in that directon.
