How to Upload any file in amazon s3 using php

Hello Friends,

in this article i show you how to upload any image file, document file or ppt file or any file in amazon.  amazon is a good website and amazon provide so many services like Direct connect,EC2, SES, s3 and so many others and amazon’s network is good,  using amazon’s “S3″ service we can upload anything in that site regarding our site’s, suppose currently so many shopping site available and so many other website also use amazon’s s3 service because they use s3 service for storing and getting all the products images from this service and from amazon’s s3 service data is also coming fast, so because of that our site’s loading speed is also reduced and its very good thing for our website to reduce site, amazon’s s3 service is very fast and its catching speed is also a good, so let i explain step by step how to upload any file in amazon’s S3 service.

first open this link and after opening this link you will display something like in below image with all the amazon web services list you can see, so from that click on S3 service and follow next step.

1Now, in second step is for creating bucket i.e we can say something like folder in other words so in below image you can read how to follow, i.e first click on create bucket button and after clicking on that button one popup will appear and on that Bucket name enter any name and than after click on Create button.


Third step is for getting your services Secret Access key and Access key id so click on this->

4in fourth step is display after uploading any file how its display, so for that example i have written in after this image.


Example: copy below code and put wherever you want in your site. and than check. in below code is for uploading any file in amazon s3 bucket, and replace Your Access Key=”xxxxxxxxxxxxxx”  and Your secret key=”xxxxxxxxxxxxxxxx” whatever you getting from step three.

And if you want to delete any image from your amazon’s bucket than using below code you can delete.

Delete Image From Amazon’s Bucket of s3 Services


so, that’s it now you can upload any file to amazon’s S3 services using above code, so please use that code and share to your friend.