Rails 关于 send_file,求帮助

roam · 2013年01月24日 · 最后由 Roam 回复于 2013年01月24日 · 2923 次阅读

我用的是 nginx,在做 Download 的时候,send_file 不 work

在 google network 脚本中是这样的

Cache-Control:private Connection:keep-alive Content-Disposition:inline; filename="test.xls" Content-Transfer-Encoding:binary Content-Type:application/xls Date:Thu, 24 Jan 2013 04:48:51 GMT Server:nginx/1.2.6 Transfer-Encoding:chunked X-Request-Id:57c48c7050112100289d8345f48d5af8 X-Runtime:0.106000 X-UA-Compatible:IE=Edge

Controller 是 send_file( filename)

为什么下载不了呢?大大们帮帮忙

nginx 里 sendfile on; 开了没

需要 登录 后方可回复, 如果你还没有账号请 注册新账号