# Upload attachment with CURL

**URL:** <https://forum.asana.com/t/upload-attachment-with-curl/143429>\
**Category:** API & Developers\
**Created:** [18 November 2021 10:51 UTC](https://forum.asana.com/t/upload-attachment-with-curl/143429 "2021-11-18T10:51:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Bastien\_Siebman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/bastien_siebman/32/172354_2.png) [@Bastien\_Siebman](https://forum.asana.com/u/Bastien_Siebman)\
**Post date:** [19 November 2021 13:50 UTC](https://forum.asana.com/t/upload-attachment-with-curl/143429/3 "2021-11-19T13:50:31Z")

</div>

Did you check out

> [@API php attachment](https://forum.asana.com/t/api-php-attachment/23715):
>
> Hi there, I tried to upload a file using Asana API in two ways: php-asana library (example file) making CURL request and in both cases have received an error message: “file: File is not an object”. Can you help me identify the problem? Many Thanks!

> [@Upload image attachment via Api](https://forum.asana.com/t/upload-image-attachment-via-api/73823):
>
> Hi, How can i upload an image attachment to so this one shows preview for Asana task, now it is showing just an icon. Thnx.

?

---

_[View the full topic](https://forum.asana.com/t/upload-attachment-with-curl/143429)._
