I have implemented server side method makeContract
, it takes an object inputData
as an argument and generates docx-document as nodebuffer
data. I call this method from the client on form submit.
Just for now makeContract
doesn’t return anything, just writes this data to my local filesystem.
I need some way to return generated file and to send in to client, when form submission appears.
Can you give me some advise, please?