I am using nodejs npm-multer s3 to upload my video/audio/image files to amazon s3 bucket. I am using the below policy to enable permission for viewing my files through my mobile application
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "AllowPublicRead",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::my bucket/*"
}
]
}
But the problem is whenever i copy the link of my s3 files in a browser and paste it, my files are getting downloaded(or shown). how can i prevent this? i dont want my files to get downloaded or shown when the link is given in the addressbar. my files should only be shown or streamed through my mobile and web application. How can i achieve this?