Trying to submit csv file with some data but unable to process the data because it is getting converted to base64 data

Expected behavior

When uploading a csv file it was expected to be received as a csv file format

Actual behavior

But getting base64 data of file

Hey @Amit_Mundra,

You simply needs to decode it. You can do as follow to have your csv as a string:

const buffer = Buffer.from(myCsvAsBase64, 'base64');
const myCsv = buffer.toString('utf-8');

Lett me know if that fix your issue :pray:

Thanks. Did something similar. Was able to fix it.

1 Like

Do we have to do similar thing for image?

Yes yo do need to do the same for images :wink: