In our freshsales suite app “iparams.html” page, when we try to store a base64 string of an image, video or a document in iparams, we are getting an error as “payload too large” and also we are getting the same error, when we try to use the same with client. request or any other request package.
Node version used v12.22.0.
fdk version 7.4.2
please find the screenshot of the error below for reference.
@Suman_Chinnaraju,
Good day!
it is not possible to store/send the Iparams value more than 256KB in the platform.
and I would suggest to add the file in CDN and use it accordingly.
We are not trying to store the media file in iparam. Instead, we are just storing the base64 string of the media file.
Since we are unable to pass the large data using client.request package, we tried to pass the “base64 string” of the media file in the, axios, and xhttp request packages and got an error response as “Access to XMLHttpRequest at ‘https://abc.com/mediaAPI/media/’ from origin ‘http://localhost:10001’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”.