dimanche 20 novembre 2016

send_file in rails 5 stopped the browser from downloading

after upgrading to Rails 5, sending a file using:

send_file file_url, :type=>"application/pdf", :x_sendfile=>true, disposition: params[:disposition]

stopped downloading the file, instead, it opens the following like window (same window)

enter image description here

Aucun commentaire:

Enregistrer un commentaire