阅读背景:

在Rails中设置公共文件类型的内容配置?

来源:互联网 

I have some PDF files in a public rails folder. I want to set the response header "content-disposition" to "attachment". I know I can create a controller to read the files and set the header myself, but is there some general application wide setting that i can enable/configure?I have some PDF files in a public rails folder.




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: