Jump to content

lunnar

Members
  • Content Count

    3
  • Joined

  • Last visited

Everything posted by lunnar

  1. 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
  2. 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
×