Home » Java » view file contents from aws s3 in web browser

view file contents from aws s3 in web browser

Posted by: admin July 12, 2018 Leave a comment

Questions:

I am storing images in the s3 bucket using java and storing the file path in the DB. I am giving the path to the client so that they can view the file instead of download it. I am able to generate pre-signed URL for the s3 object. So, that if I give to the client they can view the file contents But if the person shares it with others, they can also view. I want to make this URL as password protected. Is there any way to do it? Or any other way so that client can view the file?

Answers: