-1
첫째,이 질문은 중복 될 수 있지만 시간 제한으로 인해 철저하게 검색 할 수 없습니다. 클립으로 업로드 한 파일을 다운로드하고 싶습니다. 다운로드 내 코드는 다음과 같습니다 :이 호출 할 때파일 클립을 사용하여 파일 다운로드
def download_digital
@photo = Photo.find(params[:photo])
send_file @photo.image.path,
filename: @photo.image_file_name,
type: @photo.image_content_type,
disposition: 'attachment',
x_sendfile: true
puts "-----------Downloded----------"
end
, 난이 파일을 얻을 수 분명히 있다고한다
Sent file /Users/c193/Documents/***/***/***/public/assets/photos/298/original/Wedding_2.jpeg (0.1ms)
-----------Downloaded----------
를 얻을. 그러나 파일은 실제로 다운로드되지 않습니다. 내가 뭘 놓치고 있는지 몰라. 나는 초보자이므로 어떤 지침이 도움이 될 것입니다.
추신 : 중복 질문이 있으시면 (시간 제한 및 검색 할 내용이 없음). 미리 감사드립니다.