# Could not determine name from file

**URL:** <https://community.hubspot.com/t/could-not-determine-name-from-file/81784>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [May 23, 2023, 11:14am UTC](https://community.hubspot.com/t/could-not-determine-name-from-file/81784 "2023-05-23T11:14:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![PieterVHeerden](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pietervheerden/32/81360_2.png) [@PieterVHeerden](https://community.hubspot.com/u/PieterVHeerden)\
**Post date:** [May 23, 2023, 11:14am UTC](https://community.hubspot.com/t/could-not-determine-name-from-file/81784/1 "2023-05-23T11:14:13Z")

</div>

Hi all,

I am using the following API to upload a file using postman

/files/v3/files

I am using this as my guideline : [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/files/files)

When i select a file, it creates the file in CRM

When i change the file paramater to text (and add my base64 string), i get the above error.

Even if i add the fileName paramater, it says the same thing.

Any help would be appreciated. I know it is something very small

Thanks

---

<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:** [May 24, 2023, 5:58pm UTC](https://community.hubspot.com/t/could-not-determine-name-from-file/81784/2 "2023-05-24T17:58:48Z")

</div>

Hey, @PieterVHeerden 👋 Thanks for your question!  
I don’t see an error message in your post. Can you add it here as a reply? Pasting it in and using the code block tool is best, as extracting the error messages and searching with them is hard with from just a screenshot.

- I have a few questions:
- Could you please provide the full error message you’re encountering? This can often give us more insight into what’s going wrong.
- Can you share a sample of your request, including the URL, headers, and body, along with the response you receive? You can just copy and paste this from Postman. Please remember to _exclude any sensitive information_.
- Are you confident that your base64 string is a valid representation of the file you’re trying to upload? Mis-formatted or corrupted base64 strings can cause issues when uploading files.

Thank you! — Jaycee

---

<div class="post-metadata">

**Author:** ![PieterVHeerden](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pietervheerden/32/81360_2.png) [@PieterVHeerden](https://community.hubspot.com/u/PieterVHeerden)\
**Post date:** [May 25, 2023, 5:18am UTC](https://community.hubspot.com/t/could-not-determine-name-from-file/81784/3 "2023-05-25T05:18:22Z")

</div>

Hi Jaycee,

Please see below. If i upload a file in postman it works. once I change file to be text in the body, that is when it fails. If i add fileName in the body, this yields the same error

- Could you please provide the full error message you’re encountering? This can often give us more insight into what’s going wrong.
  - **{**

- Can you share a sample of your request, including the URL, headers, and body, along with the response you receive? You can just copy and paste this from Postman. Please remember to _exclude any sensitive information_.
  - **Params = nothing**
  - **POST**
  - **{{baseUrl}}/files/v3/files**
  - **Auth = Bearer Token**
  - 

 ![PieterVHeerden_0-1684991766707.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/2/02e2a7a9e3c5f6ede482a2b744aaa0deb9f14ce4.png)

- **Body**
  - Form Data
  - file = \<== add your own base64 string
  - folderPAth = /
  - options
    - {“access”:“PRIVATE”,“overwrite”:false,“duplicateValidationStrategy”:“NONE”,“duplicateValidationScope”:“ENTIRE\_PORTAL”}

- Are you confident that your base64 string is a valid representation of the file you’re trying to upload? Mis-formatted or corrupted base64 strings can cause issues when uploading files \<== **Yes if i take the same sting in C# then it uploads**

Thanks

---

<div class="post-metadata">

**Author:** ![jeff00seattle](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@jeff00seattle](https://community.hubspot.com/u/jeff00seattle)\
**Post date:** [June 4, 2023, 12:31pm UTC](https://community.hubspot.com/t/could-not-determine-name-from-file/81784/4 "2023-06-04T12:31:56Z")

</div>

Any luck?

I am experiencing the same issue.

---

<div class="post-metadata">

**Author:** ![AKemeklis](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@AKemeklis](https://community.hubspot.com/u/AKemeklis)\
**Post date:** [August 28, 2023, 7:36pm UTC](https://community.hubspot.com/t/could-not-determine-name-from-file/81784/5 "2023-08-28T19:36:16Z")

</div>

Hey,

I am also having the same issue.

 ![Screenshot 2023-08-28 at 14.33.15.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/4/64e7bfd8b78dea01d8916343a7960936820c4e7f.png)

 ![Screenshot 2023-08-28 at 14.33.55.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/f/fc5b0165a381a645eb73ca9452c396df11839da4.png)

I am passing a Base64 encored file (this is the only part I am not fully sure of).  
But other than that, everything is according to the docs. I run plenty of API calls through Hubspot with the same authentication so I assume that’s not the problem either.  
is there any way we can get help?

---

<div class="post-metadata">

**Author:** ![MWeber7](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@MWeber7](https://community.hubspot.com/u/MWeber7)\
**Post date:** [December 19, 2025, 3:54pm UTC](https://community.hubspot.com/t/could-not-determine-name-from-file/81784/6 "2025-12-19T15:54:41Z")

</div>

Any update on this? Experiencing the same problem

---

<div class="post-metadata">

**Author:** ![Victor\_Becerra](https://avatars.discourse-cdn.com/v4/letter/v/87869e/32.png) [@Victor\_Becerra](https://community.hubspot.com/u/Victor_Becerra)\
**Post date:** [December 19, 2025, 10:06pm UTC](https://community.hubspot.com/t/could-not-determine-name-from-file/81784/7 "2025-12-19T22:06:17Z")

</div>

Hi @MWeber7

Thank you all for reaching out to the Community and sharing the details of your experience with the file upload endpoint — it definitely helps to see multiple users encountering the same behavior.

I’d like to invite some of our community members who are subject matter experts to join this conversation: Hey @SteveHTM @RubenBurdin @d-lupo Happy Friday! Would you be able to share any insights on uploading Base64-encoded files via /files/v3/files and the “Could not determine name from file” error? Your expertise would be greatly appreciated.

Best,  
Victor

---

<div class="post-metadata">

**Author:** ![Victor\_Becerra](https://avatars.discourse-cdn.com/v4/letter/v/87869e/32.png) [@Victor\_Becerra](https://community.hubspot.com/u/Victor_Becerra)\
**Post date:** [January 19, 2026, 2:50pm UTC](https://community.hubspot.com/t/could-not-determine-name-from-file/81784/8 "2026-01-19T14:50:36Z")

</div>

Hi everyone, thanks to all of you for the details you’ve shared so far.

That Could not determine name from file error is coming from how the multipart body is built. When file is sent as a text field with a base64 string (instead of a real file upload), the part doesn’t have a filename, so /files/v3/files can’t infer one and returns this error. The fix is to send file as an actual file part with a filename (or decode your base64 to bytes and append it as the file field with something like my-document.pdf as the filename), and keep options and folderPath as separate form fields. You don’t need a separate fileName field; the API reads the filename from the file part itself.

You can see the expected multipart/form-data shape in our Files API docs here: [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/files/files).

Hope it helps!  
Best, Victor
