[Seaside] File Download Link

Robert Sirois watchlala at hotmail.com
Thu Sep 15 15:50:01 UTC 2011


Oh hm. Does it really make sense to respond with a file then? I'll be honest... my technical expertise is severely lacking in this area.

RS

> From: jfitzell at gmail.com
> Date: Thu, 15 Sep 2011 09:08:33 +0100
> Subject: Re: [Seaside] File Download Link
> To: seaside at lists.squeakfoundation.org
> 
> I'm not really sure what you're asking. But the Location: header has
> no effect in a 200 HTTP OK response. Normally you use it with a 302,
> though the spec defines behaviour for a number of others.
> 
> Julian
> 
> On Tue, Sep 13, 2011 at 2:39 AM, Robert Sirois <watchlala at hotmail.com> wrote:
> > If I do something like this in a callback...
> > self requestContext respond: [:response |
> > response location: index localURL.
> > ].
> > ... nothing happens. If I just do "#url: index localURL;" it works fine, but
> > then the path is totally public of course.
> > The callbacks are kind of nifty because the urls are unique.
> > RS
> > ________________________________
> > Date: Mon, 12 Sep 2011 17:16:13 +0100
> > Subject: Re: [Seaside] File Download Link
> > From: nick.ager at gmail.com
> > To: seaside at lists.squeakfoundation.org
> >
> >
> >
> > On 12 September 2011 17:06, Sebastian Sastre <sebastian at flowingconcept.com>
> > wrote:
> >
> > configure the httpd to use it and make in the seaside app a x-sendfile kind
> > of link
> > take a look:
> > http://wiki.nginx.org/XSendfile
> > sebastian
> > o/
> >
> > or if you don't mind the file being publicly visible, just ensure that Nginx
> > will serve the file directly then return a link to it;
> > WAResponse>>#location:
> >
> > _______________________________________________ seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> >
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110915/88d154f2/attachment.htm


More information about the seaside mailing list