0

In my app, I need to download a large zip file and my server(NodeJs) is providing zip using streams to the client but when the file created is too large I am getting network failed error after downloading some amount of file. Here is my sample client code:

<form method="post" action="somewhere" >
<input type="text" name="resources[]" value="resource1"/>
<input type="text" name="resources[]" value="resource2"/>
<input type="text" name="resources[]" value="resource3"/>
  <input type="submit" value="post request"/>
</form>

Also I after some research I found that it might be possible that the client is unable to consume the streams properly. There I get to know about FileSaver. Should I try it or there is something wrong on my client or server? Here is my server sample: DownloadServer

Raghu Chahar
  • 1,637
  • 2
  • 15
  • 33

0 Answers0