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.
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
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.
Did you know that the Community is available in other languages? Join regional conversations by changing your language settings !
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 toexclude 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 <== Yes if i take the same sting in C# then it uploads