I am uploading an image to a task using bellow command.
curl -u : --form "file=@file.txt" https://app.asana.com/api/1.0/tasks/1337/attachments
It works well. The issue is unlike I upload an image using Asana website, the file is downloaded instead of showing in the browser.
Edited: Jpeg works but png does not. "type=image/png" doesn't help.
Thanks,