2012-02-18 1 views

답변

0

은 또한이 꽤 오래된 질문이다 application/octet-stream

0

처럼 뭔가에 Content-Type을 설정해야합니다,하지만 난 누군가를 도울 수 있기를 바랍니다. 쿼리 인수 "response-content-disposition"= "attachment; filename = some-file.txt"를 추가 할 수 있습니다.

자세한 정보/도움말은 AWS 설명서 http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectGET.html에서 확인할 수 있습니다. 이런 당신은 루비 SDK를 사용하는 경우

Additionaly, 그것은 것 일 :

s3_object.url_for(:read, expires: expiration_date, response_content_disposition: 'attachment; filename=some-file.txt') 
관련 문제