We have updated WebDataRocks EULA, effective as of April 18, 2024. Learn more about what's changed.

Receive exported file in a nodejs server

Answered

How can I receive an exported file from the exportTo method in a nodejs server?

I supposed that the content of the post request was multipart encoded but it seems it is a form-data. So how can I get the file since I’ve checked req.body and it was empty?

1 answer

WebDataRocks Team WebDataRocks October 30, 2019

Hello, Toky,
 
Thank you for writing.
 
You are correct, the content of the post request is form-data. Our team suggests checking a Network tab in your browser’s console to find out more details about the request sent to the server. It should help you in handling the result correctly on your back end.
More information about exportTo method you can find by following the link below:
https://www.webdatarocks.com/doc/exportto/
 
We hope it helps.
 
Regards
WebDataRocks Team