Resources



Sample Code and Libraries

Amazon S3 Bucket Browser in C#

Click for a printer friendly version of this document Printer Friendly Save to del.icio.us
Average Review:

A sample application that demonstrates how to build a basic bucket browser using Amazon S3 and .NET (this example uses C#).

Submitted By: Mike@AWS  

About This Sample

This sample application implements several high-level features, while simultaneously showing how to leverage an Amazon S3 helper class that handles background tasks such as creating and using signatures:

  • Amazon S3 buckets are enumerated in a Windows-like interface.
  • Full support for drag and drop: both into and out of the application.
  • Metadata about an object is stored in Amazon S3 when you add files.
  • There is a simple viewer to render .jpg and plain text files, based on the content-type stored in the object's metdata. Only these two MIME types are rendered.
  • You can create and delete buckets from the application.
  • You can delete objects from the application.

You cannot do any of the following in this particular sample:

  • Treat common prefixes as a “directory”.
  • Set access permissions on objects (public vs. private). All objects are uploaded using the default private ACL.

Prerequisites

  • You must have an Amazon Web Services account (http://aws.amazon.com).
  • You must have signed up to use Amazon S3 (http://aws.amazon.com/s3).
  • This sample was created using Microsoft Visual Studio Professional 2005, but also works with Microsoft Visual C# 2005 Express Edition.

Running The Sample

  1. Download and extract the .zip file contents.
  2. Open S3BucketBrowser.sln in Visual Studio.
  3. Enter your access identifiers:
    • Open Settings.settings and enter your access identifiers in Visual Studio.
      -OR-
    • Compile and run the application. You can enter your access identifiers using the application's File -> Options menu

License

This sample is provided under a BSD-style license:
This software code is made available "AS IS" without warranties of any kind. You may copy, display, modify and redistribute the software code either by itself or as incorporated into your code; provided that you do not remove any proprietary notices. Your use of this software code is at your own risk and you waive any claim against Amazon Web Services LLC or its affiliates with respect to your use of this software code. (c) Amazon Web Services LLC or its affiliates.


Attachments
Click to download this attachment s3-bucketbrowser-c#.zip (805.0 K)


Related Documents
Type: Articles & Tutorials Video: Building the Amazon S3 Bucket Browser in Visual Studio
Type: Articles & Tutorials Introduction to AWS for C# Developers

Discussion

The 5 most recent discussion messages. View full discussion.

my401kisnow201k
Posts: 4
Registered: 11/18/08
Amazon S3 Bucket Browser in C#
Posted: Nov 18, 2008 4:37 PM PST
 
  Click to reply to this thread Reply

Does anyone have sample code to modify the ACL in C#? I uploaded a few files and would like to make them publicly available but can't find sample code to do so.



Reviews
Create Review Write a Review

Worked !, Nov 8, 2008 9:11 AM
Reviewer: jgisabelle
It converted to VS 2008 well, compiled also well and worked. That is a simple "2 analyze" sample and to based on. j.
Welcome, Guest Help
Login Login