Wrong name is attributed when upload a file

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?

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.