[Gambas-devel] Response.SendFile

Fabien Bodard gambas.fr at ...176...
Wed Nov 28 23:49:41 CET 2007


Le Wednesday 28 November 2007 23:44:21 Benoit Minisini, vous avez écrit :
> 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.

ok ... the doc is not clear :
but by reading the gb.web code... i'm able to understand some things






More information about the Devel mailing list