lunnar
-
Content Count
3 -
Joined
-
Last visited
Posts posted by lunnar
-
-
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
-
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
filename for download file THttpServer
in ICS - Internet Component Suite
Posted
oh. ok, thx