no, but i'm not trying anymore, thanks very much for the advice anyway<br><br><div class="gmail_quote">2011/3/20 AA <span dir="ltr"><<a href="mailto:aa@serendip.demon.co.uk">aa@serendip.demon.co.uk</a>></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'd set the file download directory to be in my home directory: '/home/me/downloads'. But, of course, this absolute path isn't recognised as a valid URL by nginx, so (duh!) that's why it wouldn't work. After moving '/downloads' to the root directory (and changing the permissions), it works fine.<br>
<br>
I've also found it necessary to use 'attachmentWithFileName:', otherwise the web server assumes the content-disposition to be 'inline' rather than 'attached', 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 <<a href="mailto:avishefi@gmail.com">avishefi@gmail.com</a>> wrote:<br>
<br>
> Amir,<br>
</div><div class="im">> Your code is fine, and works OK. The only thing that's wrong is that it uses<br>
> contentType:attachementWithFileName , whereas X-Accel-Redirect doesn't<br>
> require these headers. Using these headers will confuse browsers into<br>
> thinking that you're actually trying to download a file (without X-Sendfile<br>
> redirection). This is why you get a file with 0 bytes - there's no file<br>
> contents in the transport.<br>
><br>
> 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>