function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Amazon S3 - Retrieving documents securely


Uploading documents DIRECTLY to S3 in a secure fashion is easy: Amazon S3 supports uploading the documents directly to S3 via HTTP POST as described in  This also allows for large attachments to be sent directly to S3 without involving salesforce as intermediary.


However, I am wondering how one would get the documents directly to the browser in a secure fashion. I don't want the document to first be brought to servers - besides the overhead, SFDC supports only 3 MB for a  Web Service request size. Amazon S3 supports Query String Request Authentication (adding the amazon username(key) and signed password (signature) directly as a URL parameter. However the problem with this approach is that the URL can be copied by anyone and they can then directly access the document. I can add an expiration time as a URL parameter, but even then this is an insecure method, since someone can access the document for a few seconds.


Any thoughts?





Scott 1Scott 1
I also am running into the same issue.  I know it can be done, but finding our to find any information on how to do it. 
S3- Link is FREE App for Salesforce - Amazon S3 Connector. Its also available on Appexchange. 

    Attach file related to any Salesforce object on Amazon.
    Ulimited free storage for one year.
    Multiple file uplaod.
    No file size limit for upload.
    File access control capabiliy.
    Track file downloads by users.
    File exlorer capability.

Here is our email address. Let us know if you have any query.