Send any kind of data/string to download using content-types

I would like to have a function in Wix which would let me create letäs say an array of elements, format them as a table and then do the following.

import {wixExport} from ‘wix-export-functions’;

wixExport.send(“application/ms-excel”, myArray);

What would happen is that it would send that data as the content type I specify and then pop that to the user.

This would really be good for all people that wants to allow exporting of data, sending Excel sheets to users and more.

It can also be used to send documents and images for download, just change the content-type and add the image to the parameter instead of a string.

1 Like

Yes!!! Yes!!! Yes!!