I am trying to send a file via send_file, in rails 3… The file is found and is seemingly sent too, but for some reason it is not received…
Also even though :disposition => ‘inline’ is set, the browser always shows a “download box”…
In nginx conf, sendfile is set to on…
I had the same problem, I looked at the response headers and saw the response type was being set as
application/octet-stream. Try setting the file’s mime type when calling send_filesend_file file, :disposition => 'inline', :type => 'image/png'