A demo app on how to connect Telerik UI for ASP.NET Core FileManager control to an Amazon S3 service.
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)
- Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/.
- 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.
- Choose "Download .csv" to save a local copy of your AWS credentials.
- Phase 2. Set dotnet user-secrets
- Open a terminal (powershell, bash, etc) and navigate to the
src/CloudFileManager/CloudFileManager.Web/
directory - 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"
- Open a terminal (powershell, bash, etc) and navigate to the
- Phase 3. Build and Deploy
- Open the solution in Visual Studio 2022 and open the
FileManagerController.cs
file - On Line 14, change the
BucketName
value from bkt-for-deployment to the name of your S3 bucket. - 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).
- Start debugging to launch the application
- Open the solution in Visual Studio 2022 and open the
Observe the S3 bucket's contents in the FileManager component:
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:
- Telerik or Kendo API questions
- ASP.NET Core questions:
- Live chat with the .NET Discord
- find a lot more resources here
- AWS S3 questions:
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.