Sample code to upload file to Amazon S3 storage

Posted on 2014-01-16
Last Modified: 2016-06-13
Hi Experts,

I am looking for sample code to upload a file to Amazon S3 storage.

I am happy to use any official Amazon API, but do not want to use a 3rd party product.

Question by:LeighWardle
LVL 10

Accepted Solution

Monica P earned 500 total points
ID: 39793705
Do you mean this type of code ?

        Dim fileTransferUtility As New TransferUtility(client)
        Dim request As TransferUtilityUploadRequest = New TransferUtilityUploadRequest
        With request
            .BucketName = "mybucketname"
        End With

    Catch ex As Exception


    End Try

Author Comment

ID: 39793988
Thanks, Akila P, that looks like the type of code I am looking for.

What references do I need?

Also where do I specify access key id and secret  access key?

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity 2 37
Need help on C# Linq query on object 6 53
Host pages 5 25
Automated testing suggestions? 2 28
Monitoring systems evolution, cloud technology benefits and cloud cost calculators business utility.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Internet Business Fax to Email Made Easy - With  eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Both in life and business – not all partnerships are created equal. Spend 30 short minutes with us to learn:   • Key questions to ask when considering a partnership to accelerate your business into the cloud • Pitfalls and mistakes other partners…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now