Amazon S3
Amazon Simple Storage Service (Amazon S3) is storage for the internet. You can use Amazon S3 to store and retrieve any amount of data at any time, from anywhere on the web.
The Amazon S3 extension provides an additional file system provider that can be added to the Open File Dialog or Save File Dialog to browse and use files on the cloud.
https://github.com/iceteagroup/wisej-extensions/tree/master/Wisej.FileSystem.AmazonS3
github.com
Amazon S3 Source Code

How to Use

The AmazonS3 component can be added to a Wisej project using NuGet Package Manager.
Wisej-3-AmazonS3 3.0.9
nuget
  • Define a new root for your File Dialog of type Wisej.Web.Ext.FileSystem.S3FileSystemProvider
  • Set AccessKey and AccessSecret properties

Code samples

1
using (OpenFileDialog ofd = new OpenFileDialog())
2
{
3
ofd.Title = "Select a file";
4
ofd.Filter = "Text Files(.txt)|.txt|All Files (.)|.";
5
ofd.FilterIndex = 0;
6
7
ofd.Roots.Add(new Wisej.Ext.FileSystem.S3FileSystemProvider("yourserver.com", "My Files")
8
{
9
// use your amazon credentials
10
AccessKey = "XXX",
11
AccessSecret = "YYY"
12
});
13
14
if (ofd.ShowDialog() == DialogResult.OK)
15
AlertBox.Show(ofd.FileName);
16
}
Copied!
You can define multilple roots for File Dialogs even mixing different providers (local file system, amazon S3 etc.).
Last modified 23d ago
Copy link