开发者

Rails 3.0 beta send_file issues

开发者 https://www.devze.com 2022-12-20 17:58 出处:网络
Have you any one try sending file to client_side send_file(url),send_file(\"#{Rails.root}/public/images/rails.png\",:type => \"image/png\")

Have you any one try sending file to client_side send_file(url),send_file("#{Rails.root}/public/images/rails.png",:type => "image/png")

it gives an error for any file which i am sending

Proc:0xb74e606c@/home...../gems/actionpack-3.0.0.beta/lib/action_controller/metal/streaming.rb:95

开发者_StackOverflow中文版

as simple


This issue has been fixed: https://rails.lighthouseapp.com/projects/8994/tickets/3860-streaming-pdf-file Either upgrade to 3.0.0.beta1 or pass :stream => false to send_file.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号