Skip to content

A demo app on how to connect Telerik UI for ASP.NET Core FileManager control to an Amazon S3 service.

Notifications You must be signed in to change notification settings

LanceMcCarthy/S3FileManagerDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 

Repository files navigation

S3FileManagerDemo

A demo app on how to connect Telerik UI for ASP.NET Core FileManager control to an Amazon S3 service.

Setup

Prerequisite: AWS SDK Credentials file

You must have a credentials file present when using the S3 SDK. For your convenience, here are the steps:

  • Phase 1. Create user credentials (if you already have AWS credentials, skip to phase 2)
    1. Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/.
    2. Create a new user with permissions limited to the services and actions that you want your code to have access to. For more information about creating a new user, see Creating IAM users (Console), and follow the instructions through step 8.
    3. Choose "Download .csv" to save a local copy of your AWS credentials.
  • Phase 2. Set dotnet user-secrets
    1. Open a terminal (powershell, bash, etc) and navigate to the src/CloudFileManager/CloudFileManager.Web/ directory
    2. Run the following commands to save two secrets (used by FileManagerController.cs:21)
      • dotnet user-secrets set "AWS_ACCESS_KEY_ID" "value-from-cvs-file"
      • dotnet user-secrets set "AWS_SECRET_ACCESS_KEY" "value-from-cvs-file"
  • Phase 3. Build and Deploy
    1. Open the solution in Visual Studio 2022 and open the FileManagerController.cs file
    2. On Line 14, change the BucketName value from bkt-for-deployment to the name of your S3 bucket.
    3. Right-click on the solution and select Rebuild
      • If you get a "missing Telerik NuGet package" error, confirm you have Telerik NuGet server as a package source (instructions).
    4. Start debugging to launch the application

Observe the S3 bucket's contents in the FileManager component:

image

Technical Support

This is a conceptual demo project and carries no guarantees. There may be some functionality that can be further refined (e.g., renaming nested folders). It is the responsibility of the implementer of this demo to both A) adjust to their cloud API's requirements, and B) meet the Telerik FileManager's requirements.

For technical assistance, choose the relevant option:

If you like a complete solution developed for you, this can be arranged by the Professional Services team, whom may be contacted here or through your sales representative.

About

A demo app on how to connect Telerik UI for ASP.NET Core FileManager control to an Amazon S3 service.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •