Skip to content

Commit 44dcb8f

Browse files
authored
Merge pull request #90 from Asana/theospears-upload-string-task-id
Files may be uploaded using a string ID
2 parents 1852d0f + dd96064 commit 44dcb8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

asana/resources/attachments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ class Attachments(_Attachments):
66

77
def create_on_task(self, task_id, file_content, file_name, file_content_type=None, **options):
88
"""Upload an attachment for a task. Accepts a file object or string, file name, and optional file Content-Type"""
9-
path = '/tasks/%d/attachments' % (task_id)
9+
path = '/tasks/%s/attachments' % (task_id)
1010
return self.client.request('post', path, files=[('file', (file_name, file_content, file_content_type))], **options)

0 commit comments

Comments
 (0)