Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create attachments for tasks #90

Open
jbardnz opened this issue Jun 2, 2022 · 1 comment
Open

Unable to create attachments for tasks #90

jbardnz opened this issue Jun 2, 2022 · 1 comment

Comments

@jbardnz
Copy link

jbardnz commented Jun 2, 2022

Hi there,

It looks like this function isn't in the source code:

$client->attachments->createAttachmentForTask

However it is documented here: https://developers.asana.com/docs/upload-an-attachment
And it is also in the samples section.

@JeremieBergeron
Copy link

This work:

$this->ASANA_CLIENT->attachments->createOnTask(
	$createdTask->gid,
	$attachment->get(),
	$attachment->getClientOriginalName(),
	$attachment->getClientMimeType()
);

My $attachment is a Illuminate\Http\UploadedFile object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants