# load pdf

**URL:** <https://community.hubspot.com/t/load-pdf/68254>\
**Category:** APIs & Integrations\
**Tags:** python\
**Created:** [October 31, 2022, 6:54pm UTC](https://community.hubspot.com/t/load-pdf/68254 "2022-10-31T18:54:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SSharma043](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@SSharma043](https://community.hubspot.com/u/SSharma043)\
**Post date:** [October 31, 2022, 6:54pm UTC](https://community.hubspot.com/t/load-pdf/68254/1 "2022-10-31T18:54:21Z")

</div>

Hi  
So basically Iam unable to upload a file

Following is the code iam using:-

 ![SSharma043_0-1667242438464.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/6/6e3c99b7a27428694d544877c2443124348d52b7.png)

and the following is the response I am getting

![unnamed.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/9/49b05ade739e221cb688ded6cf2b1ad16001fff8.png)

I took reference from this [page](https://developers.hubspot.com/docs/api/files/files) and wasn’t able to find sample code there for uploading a file

What am I doing wrong here?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 1, 2022, 4:20pm UTC](https://community.hubspot.com/t/load-pdf/68254/2 "2022-11-01T16:20:00Z")

</div>

Hey, @SSharma043 I want to make sure you saw this similar post from yesterday — [Python - help uploading a file via CMS API](https://community.hubspot.com/t5/APIs-Integrations/Python-help-uploading-a-file-via-CMS-API/m-p/712487/highlight/true#M58307)

You can also add your information to that thread and leverage the replies already given.

Best,

Jaycee
