# Value can't be casted as buffer for parameter 'data'

**URL:** <https://community.make.com/t/value-cant-be-casted-as-buffer-for-parameter-data/29992>\
**Category:** Beginner Questions\
**Tags:** error, api\
**Created:** [March 9, 2024, 3:37am UTC](https://community.make.com/t/value-cant-be-casted-as-buffer-for-parameter-data/29992 "2024-03-09T03:37:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Parker\_McKean](https://avatars.discourse-cdn.com/v4/letter/p/db5fbb/32.png) [@Parker\_McKean](https://community.make.com/u/Parker_McKean)\
**Post date:** [March 9, 2024, 3:37am UTC](https://community.make.com/t/value-cant-be-casted-as-buffer-for-parameter-data/29992/1 "2024-03-09T03:37:44Z")

</div>

Hello! I am trying to upload a PDF file from a webhook and send it to an API using “Multipart/form-data” body type. I am getting an error and am unsure why. I am very new to make so maybe i’m just not understanding it correctly. Any help is appreciated, thanks!

 ![Screenshot 2024-03-08 223305](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/9/b/9b77fe0b24ec11813dcbb98a1c9d1349b7efd6ac.png)  
 ![Screenshot 2024-03-08 223502](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/2/72e6f61708a78e036570f2579b859dc7cbd102d0.png)

---

<div class="post-metadata">

**Author:** ![Msquare\_Automation](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/msquare_automation/32/6634_2.png) [@Msquare\_Automation](https://community.make.com/u/Msquare_Automation)\
**Post date:** [March 9, 2024, 4:00am UTC](https://community.make.com/t/value-cant-be-casted-as-buffer-for-parameter-data/29992/2 "2024-03-09T04:00:17Z")

</div>

Hi @Parker_McKean

Welcome to community!

Please check the file data ({{1.file}}) format to confirm that it matches the data format accepted by the API call as it comes from the webhook.

If you require additional assistance, please don’t hesitate to reach out to us.  
[MSquare Support](https://calendly.com/msquarepro/meeting)  
Visit us [here](https://www.msquare.pro/)  
[Youtube Channel](https://www.youtube.com/channel/UCqidlIIwbejxZmRUWBICcjQ)

---

<div class="post-metadata">

**Author:** ![Parker\_McKean](https://avatars.discourse-cdn.com/v4/letter/p/db5fbb/32.png) [@Parker\_McKean](https://community.make.com/u/Parker_McKean)\
**Post date:** [March 9, 2024, 1:50pm UTC](https://community.make.com/t/value-cant-be-casted-as-buffer-for-parameter-data/29992/3 "2024-03-09T13:50:33Z")

</div>

Its a pdf file, confirmed it. Still isnt working

---

<div class="post-metadata">

**Author:** ![Msquare\_Automation](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/msquare_automation/32/6634_2.png) [@Msquare\_Automation](https://community.make.com/u/Msquare_Automation)\
**Post date:** [March 11, 2024, 3:37am UTC](https://community.make.com/t/value-cant-be-casted-as-buffer-for-parameter-data/29992/4 "2024-03-11T03:37:22Z")

</div>

@Parker_McKean

Please check if the data is in buffer format. If not, please download the file and map it to HTTP.

If you require additional assistance, please don’t hesitate to reach out to us.  
[MSquare Support](https://calendly.com/msquarepro/meeting)  
Visit us [here](https://www.msquare.pro/)  
[Youtube Channel](https://www.youtube.com/channel/UCqidlIIwbejxZmRUWBICcjQ)

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [June 9, 2024, 2:49am UTC](https://community.make.com/t/value-cant-be-casted-as-buffer-for-parameter-data/29992/5 "2024-06-09T02:49:04Z")

</div>


