Issue
The file S3 URL belongs to pdf file, when I assigned that URL to SRC of element in my angular, instead of previewing it was downloading the file, even in the params of .getSignedUrl methos I have set 'ResponseContentDisposition: "inline"', still the file gets downloaded. I need help.
I need to preview the file instead of downloading.
Solution
It looks like you didn't specify the correct metadata, you should set the proper MIME media type for your objects in the bucket.
If you want to have the possibility to preview your pdf documents in the browser instead of downloading them, your object in the bucket should have:
Content-Type: application/pdf
Answered By - Peca021
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.