We are trying to download documents from s3 inside the interfaces using getpresignedurlfors3 functions, we are able to download almost all other type of documents except we have identified that when we are trying to download pdf docs we are getting error- Failed to load PDF document.(PFA the screenshot).Fyi we are using chrome.Please advise what should be the fix for the issue..
Discussion posts and replies are publicly visible
Are you displaying the presigned URL as a hyperlink which on clicking displays the document in the web browser or you are using the URL to download the document?
Ideally we would want the documents to download directly instead of displaying for consistency. But chrome opens images, pdf in new tab but downloads docs like word, excel etc.
For that you can use the presigned URL to download the document. Pass the presigned URL as base url to an integration and it will download the document.
Yes thats an option but we using presignedUrl on a!safelink object to let users click and download from the grid, coz of that the download behavior is inconsistent for different file formats of the files residing in s3 buckets.Plz let me know if you have a remediation or work around it.Thanks
We are also using this for the first time. So far, we didn't face any file download issues. Can you please let me know the file extensions for which you faced issues?