Upload File API

I am calling the files api to post a file to a deal. The API works when I tried it on the API docs site with my token and it also works when using POSTMAN.

However, when I tried to implement it to my website using jQuery ajax call for this, it keeps return me “Disallowed Key Characters.”. I tried to do it on server side using PHP and had the same result.

How can I fix this?

Sorry. I just found a working PHP sample code to upload file:

1 Like