[Gambas-devel] Response.SendFile
Benoit Minisini
gambas at ...1...
Wed Nov 28 23:44:21 CET 2007
On mercredi 28 novembre 2007, Benoit Minisini wrote:
> On mercredi 28 novembre 2007, Fabien Bodard wrote:
> > Hi, Benoit
> > Can I or you add that feature to the Response.SendFile function ?
> >
> > So the file can have a better name than index.gambas for exemple :)
> >
> > Content - Disposition: attachment; filename = $name
> >
> >
> > Fabien
>
> You need one more argument for defining "Content-Disposition" header, do
> you?
You can actually already do that this way:
Response.AddHeader("Content-Disposition","attachment; filename =" & FileName)
Response.SendFile(...)
But one more argument would be clearer.
--
Benoit Minisini
More information about the Devel
mailing list