# Wrong name is attributed when upload a file

**URL:** <https://community.hubspot.com/t/wrong-name-is-attributed-when-upload-a-file/102221>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [March 11, 2024, 3:08pm UTC](https://community.hubspot.com/t/wrong-name-is-attributed-when-upload-a-file/102221 "2024-03-11T15:08:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denner](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@Denner](https://community.hubspot.com/u/Denner)\
**Post date:** [March 11, 2024, 3:08pm UTC](https://community.hubspot.com/t/wrong-name-is-attributed-when-upload-a-file/102221/1 "2024-03-11T15:08:13Z")

</div>

Hi there,

I’m facing an issue when a file is updated to hubspot using the endpoint - **files-v3-files, if the name has a special character exemple:André Nac…, the final result is the file uploades with the name as a base64 format.**

we already tryed to convert the string to utf8 format but no success

can you guys help me please?

---

<div class="post-metadata">

**Author:** ![DanielPicklo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/danielpicklo/32/64110_2.png) [@DanielPicklo](https://community.hubspot.com/u/DanielPicklo)\
**Post date:** [March 13, 2024, 7:04pm UTC](https://community.hubspot.com/t/wrong-name-is-attributed-when-upload-a-file/102221/2 "2024-03-13T19:04:35Z")

</div>

Good afternoon!

If the final file name does not need to contain those special characters, I’d recommend removing them from the string using this Regex expression: /[^a-zA-Z0-9]+/g

It will remove all non-alphanumeric characters from your string.
