-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Can't add attachments to card #3
Comments
Yikes! I will take a look. |
There was in fact some code that needed to change to make this work as expected. I've added this code and updated the test suite. A new release has been cut for this, 0.3.5. Please update your project and give it a try again. The $attributes = [
'name' => 'Cheddar Bo is delicious!',
'file' => fopen('/path/to/cheddar-bo.jpg', 'r'),
'mimeType' => 'image/jpeg',
'url' => null
];
$result = $client->addCardAttachment($cardId, $attributes); |
This is great - thanks a lot. |
Works! |
I need to add attachments/files to an existing card. I've tried the following and get a 400 Bad Request response, for each.
http://docs.guzzlephp.org/en/latest/quickstart.html?highlight=multipart#sending-form-files
https://developers.trello.com/advanced-reference/card#post-1-cards-card-id-or-shortlink-attachments
The text was updated successfully, but these errors were encountered: