I have a project that requires file uploads into Asana. I would like to be able to do this through Asana's API if possible. I have been able to successfully create tasks in Asana using Ajax Post requests. Is there anyway to use an Ajax Post request to upload a file to an Asana task? I would like to be able to upload files straight from an HTML FileUplaod Object. Does anyone know if this is possible?
I have tried Posting an JSON object like this to the attachments API, but this did not work.
https://app.asana.com/api/1.0/tasks/{taskID}/attachments
{ "parent": 1337, "download_url": "https://www.dropbox.com/s/1234567890abcdef/Screenshot.png?dl=1", }
I also don't want to post using a url, I want to post directly from the FileUpload object, if possible.