Unable to attach Document in Freshsales

Hi Team,

I am trying to upload a document in freshsales using https://domain.freshsales.io/api/documents.but I am getting the following error.

I am using Javascript fetch to achieve this. Kindly help me with this.

Hi @Muniyappan_Mani,

It looks like bad request due to some validation of the file for the respective API. Could you share the code snippet of where this request is made from?
Please hide any sensitive information when sharing the app source code.

1 Like

Hi @Raviraj
The issue was resolved. Thanks for the reply

@Muniyappan_Mani Could you please brief us what helped resolve the issue?
This will help the future visitors with the same issue.