no, but i&#39;m not trying anymore, thanks very much for the advice anyway<br><br><div class="gmail_quote">2011/3/20 AA <span dir="ltr">&lt;<a href="mailto:aa@serendip.demon.co.uk">aa@serendip.demon.co.uk</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Avi, Ricardo<br>
<br>
I found my error!  I&#39;d set the file download directory to be in my home directory: &#39;/home/me/downloads&#39;.  But, of course, this absolute path isn&#39;t recognised as a valid URL by nginx, so (duh!) that&#39;s why it wouldn&#39;t work.  After moving &#39;/downloads&#39; to the root directory (and changing the permissions), it works fine.<br>


<br>
I&#39;ve also found it necessary to use &#39;attachmentWithFileName:&#39;, otherwise the web server assumes the content-disposition to be &#39;inline&#39; rather than &#39;attached&#39;, and displays the file instead of saving it.<br>


<br>
Avi, thanks for all your help!  Ricardo, have you managed to get your downloads working yet?<br>
<br>
Amir<br>
<br>
<br>
On Sun, 13 Mar 2011 10:05:40 +0200<br>
<div class="im">Avi Shefi &lt;<a href="mailto:avishefi@gmail.com">avishefi@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Amir,<br>
</div><div class="im">&gt; Your code is fine, and works OK. The only thing that&#39;s wrong is that it uses<br>
&gt; contentType:attachementWithFileName , whereas X-Accel-Redirect doesn&#39;t<br>
&gt; require these headers. Using these headers will confuse browsers into<br>
&gt; thinking that you&#39;re actually trying to download a file (without X-Sendfile<br>
&gt; redirection). This is why you get a file with 0 bytes - there&#39;s no file<br>
&gt; contents in the transport.<br>
&gt;<br>
&gt; You should use only contentType and X-Accel-Redirect to specify your file.<br>
</div><div><div></div><div class="h5">_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>lets reign all together<br>