# What is going on with createfile?

**URL:** <https://integration.keap.com/t/what-is-going-on-with-createfile/94065>\
**Category:** API Q&A\
**Created:** [May 21, 2026, 4:16pm UTC](https://integration.keap.com/t/what-is-going-on-with-createfile/94065 "2026-05-21T16:16:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeffrey\_Chimene](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@Jeffrey\_Chimene](https://integration.keap.com/u/Jeffrey_Chimene)\
**Post date:** [May 21, 2026, 4:16pm UTC](https://integration.keap.com/t/what-is-going-on-with-createfile/94065/1 "2026-05-21T16:16:30Z")

</div>

@OmarAlmonte Why does the description for this sdk call say “create a file”, yet the function signature calls out 2 files? I see no explanation for this implementation decision. The example, as always, is less than illuminating,

---

<div class="post-metadata">

**Author:** ![Jeffrey\_Chimene](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@Jeffrey\_Chimene](https://integration.keap.com/u/Jeffrey_Chimene)\
**Post date:** [May 21, 2026, 5:23pm UTC](https://integration.keap.com/t/what-is-going-on-with-createfile/94065/2 "2026-05-21T17:23:52Z")

</div>

After some time, I still cannot coax useful behavior from this SDK call. ISTR this is where I left this issue a few months ago:

```auto
https://api.keap.com/crm/rest/v2/files?file=Hello%2C%20world%21%0A&file_name=sampleFile.zip&contact_id=50015&is_public=&file_association=CONTACT

```

still gives nothing useful in the resulting error message

```auto
[500] Server error: `POST https://api.keap.com/crm/rest/v2/files?file=Hello%2C%20world%21%0A&file_name=sampleFile.zip&contact_id=50001&is_public=&file_association=CONTACT` resulted in a `500 Internal Server Error` response:\n
{"code":500,"message":"An unexpected error occurred","status":"Internal Server Error","details":[{"domain":"file","resou (truncated...)

```

For now, I’ll revert to the FileUploadHelper posted earler.

---

<div class="post-metadata">

**Author:** ![OmarAlmonte](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/omaralmonte/32/15105_2.png) [@OmarAlmonte](https://integration.keap.com/u/OmarAlmonte)\
**Post date:** [May 21, 2026, 7:30pm UTC](https://integration.keap.com/t/what-is-going-on-with-createfile/94065/3 "2026-05-21T19:30:43Z")

</div>

Hi Jeffrey, this seems to be a bug in the PHP SDK. I’ll bring it up internally so we can take a closer look and get it addressed.

---

<div class="post-metadata">

**Author:** ![OmarAlmonte](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/omaralmonte/32/15105_2.png) [@OmarAlmonte](https://integration.keap.com/u/OmarAlmonte)\
**Post date:** [June 5, 2026, 9:58pm UTC](https://integration.keap.com/t/what-is-going-on-with-createfile/94065/4 "2026-06-05T21:58:06Z")

</div>

Hi @Jeffrey_Chimene, this is now fixed.
