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
Tapasvini MakvanaTapasvini Makvana 

Upload an image in amazon S3 using apex code

Hi,

I need to upload few images to Amazon S3storage. Can anyone help how can i achieve this with apex code.

thanks in advance..
_Prasu__Prasu_
You can give a try with this toolkit (https://developer.salesforce.com/page/Amazon_Toolkit)
Tapasvini MakvanaTapasvini Makvana
Thanks Prasu for your reply but i dont want to use amazon_toolkit. I need to do this through Apex and vf page only. Can u guide how i can achieve it.
S3-LinkS3-Link
S3- Link is FREE App for Salesforce - Amazon Connector. Its also available on Appexchange. 

 1. Create Amazon S3 file for standard Salesforce attachment through
    trigger.
 2. Upload attachments on Amazon S3 and create reference in Salesforc to
    access those attachments
 3. Attach file related to any Salesforce object on Amazon.
 4. Unlimited free storage.
 5. Auto backup Event logs / inbound email attachments.
 6. Server Side Encryption: AES-256
 7. No file size limit for upload.
 8. File access control capabiliy.
 9. Track file downloads by users.
 10. File exlorer capability.

https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000CW1OXEA1

Here is our email address. Let us know if you have any query.
support@neiloncloud.com

Thanks.
raja shekar 78raja shekar 78
Hi , I have a requirement to store the files /images from salesforce to amazon ,and later need to read those files ,download and delete . i have gone through some documents ,videos and found there are 3 ways to store i.e using s3, ebs,efs but not sure which is suitable. could you please suggest which one will fit and how as per our requirement? and which is good either amazon or google cloud? mail me:raja.evt@gmail.com  
Mani Cube84Mani Cube84
Hi, I have a requirement, one of my clients is using the Amazon s3 and they are sending the images by downloading then zip and email to their customers. They want to automate the process by creating the bucket and then uploading the images there. Directly they send the URL to customers through and they download all the images in a  single shot. Can you please suggest us how to set the automation.
Chris DarrelChris Darrel

Hi Many,

With the help of this tool (https://skyvia.com/data-integration/integrate-salesforce-amazon-s3), you can download your files to Amazon automatically and any line of code. 

Sonam MeshramSonam Meshram
Hi All,
It is very easy to integrate SFDC with Amazon S3 by using the app named Drag, Drop & Upload Files to Amazon S3 for this am using the same and its very easy to use and has advanced features like you can delete/view your files from salesforce, and also provide some additional customization.
If you have been using Salesforce for any length of time, you have probably wanted to attach large and multiple files at one time. Now you can! In standard salesforce, you can attach and only upload files up to 25MB size one at a time.

This App provides you the facility to associate multiple files to a record in one go and without any size restriction.

Please have a look: https://sforce.co/34y12sL