i am developing a preview function where i want to view objects from my s3 aws bucket. i get this url: https://[BUCKET NAME].s3.us-east-2.amazonaws.com/[FILE NAME].[EXTENTION] and when i open it the file automatically starts to download whereas i just want to view the file not download it as an attachment.
i have tried google viewer url: https://docs.google.com/viewerng/viewer?url=https://[BUCKET NAME].s3.us-east-2.amazonaws.com/[FILE NAME].[EXTENTION]&chrome=false . it works fine but i was asked specifically to find a way to view thru aws url as the google viewer at times is not loading fast and also leaves the screen blank for a long time.
This is to be done in flask (python framework). I am using dropzone.js to upload it to my aws. I am also using jquery .
'<iframe src=[link]"https://docs.google.com/viewer?url='+IMAGE_UPLOAD_PATH_AWS+''+file[3]+'&embedded=true&chrome=false/edit?&rm=minimal" class="upload-images-box vehicle-img" frameborder="0"></iframe>'and it is working fine but the only issue is the widgets google is giving me inbuilt with the url how do i remove it ?