Upload Attachment in Base64-Asana API

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

1 Like

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

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//attachments and sent the file as blob.

https://app.asana.com/api/1.0/asanaTaskId/attachments

1 Like

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