Unable to store and use base64 in freshworks crm iparams.html page

Hi Team,

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.

Looking forward for the response.

Thanks,
Suman.

@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.

Hope it helps :slight_smile:

Thanks

@Santhosh

Thanks for the response, Santhosh.

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.”.

Is there any way to fix this.

Thanks,
Suman.

@Suman_Chinnaraju,
As I said, it is not possible to store Iparams values of more than 256KB in the platform.

other than request API other packages will throw the CORS error.
and may I know what is URL you are using to make the API call?

Thanks

@Santhosh

The url we used to make the api call is “https://api.myvfirst.com/mediaAPI/media/”.

Thanks,
Suman.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.