Relative Content

Tag Archive for node.jsexpressaxiosnodemailerreact-typescript

How to export a xlsx file from frontend (react) to backend (express), and then send it to email?

So, I needed a function to convert data from an array containing arrays of objects into a sheet, and managed to do so with the xlsx lib. Now I need to send it appended to an email and it worked fine with nodemailer (the email is, at least, being sent), but after converting an array with more than 75 objects with a ‘for’ loop and encoding it to base64, the payload that goes to the backend request got too big and returned an error 413.