Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. AnswerStream is a send but for browser it's a download file. But it's easy: var link = document.createElement('a'); link.setAttribute('href','xls/'+ID+'.xls'); link.setAttribute('download',ID+'.xls'); onload=link.click(); now, all good, thx
  2. hi. I need to send download file. I use ContentType:='xls/xls'; Cli.AnswerStream(Dummy,'',ContentType,''); where I need to write Filename? If I try Cli.AnswerStream(Dummy,'',ContentType,'Content-Disposition: attachment; filename="'+ExtractFileName(Fullpath)+'"'); I get file with 0 byte