.Net 6 WebAPI - Upload files to AWS S3 - Step by Step
ฝัง
- เผยแพร่เมื่อ 1 ส.ค. 2024
- In this video we will go through Web API and AWS S3 integration. We will learn about S3 and how to use it with our .Net web api and how can upload files to it.
Support me on Patreon to access the source code:
/ mohamadlawand
So what we will cover today:
00:00 intro
00:51 Agenda
01:26 What is AWS S3
02:54 What is an S3 Bucket
06:22 S3 Characteristics - Benefits
09:26 Securing S3 Bucket
10:22 S3 Encryption
14:22 S3 Class Types
21:37 Ingredients (dev requirements)
22:13 Code time
22:37 Create an IAM User
23:29 Create an S3 bucket
27:03 Create Web API and Classlib
31:37 Setup the S3 Classlib
32:02 Create S3 Models (DTOs)
37:17 Create the interface and service
52:04 Creating the controller
59:53 Injecting the Services
01:01:10 Testing the application
DotNet SDK:
dotnet.microsoft.com/download
Visual Studio Code:
code.visualstudio.com/](code.visualstudio.com/
Let us connect:
🌍 My website - mohamadlawand.com
📸 Instagram - / mohamadlawand087
🐦 Twitter - / moe23
♯ Github - github.com/mohamadlawand087
🎫 LinkedIn - / mlawand
💥 LinkTree - linktr.ee/mohamadlawand
Gear I use (affiliate link): amzn.to/3EbT8Jw
Support my work:
/ mohamadlawand
www.buymeacoffee.com/mohamadl...
Hire Me:
transactions.sendowl.com/prod...
WHO AM I:
I'm Mohamad, a Enterprise Architect working in Manchester, UK. I make videos about web, cloud, desktop and mobile development.
GET IN TOUCH:
If you’d like to talk, I’d love to hear from you. Tweeting @moe23 directly will be the quickest way to get a response, but if your question is very long, feel free to email me at hello@mohamadlawand.com.
#Net6 #s3 #aws
Thanks, this helped a lot, your tutorial was awesome, extremally well explained!
Thank you Mohamad.
Really good tutorial 🚀🚀. Please share more aws videos.
Thanks for the video!
Awesome Explanation, I used it for Digital Ocean Spaces, the config is the 100% the same. i really love your channel
Great tutorial, my friend. Such a good video
Great job, thank you!
Solid tutorial!
Thanks, your video help me a lot.
Thank you for this tutorial. 😀
Thank you very good video
Thanks Mohamad
Great tutorial, thank you. Do you have any resources on the best practices for OCR capability lets say I want to extract data from a letter, License Id or Passport?
Hi Lawand,
I am trying to upload large files but it throws an error "HTTP content length exceeded 10485760 bytes."
Can you please provide me any solution on this.
one more thing is that it works fine in local machine but when I deploy it on Lambda function it throws error as same.
Thanks in advance and awaited for your answers.
Great video, please make a video of also reading a file from s3 and returning iformfile
Hi Mohammad, Thanks for your efforts.
I have one question - Why you have created a user - demo_user_1? Can't we create the bucket directly and access it via code? because in code, I don't see any reference of user.
Hello Mohammad, is it possible to get the the upload url after uploading a document?
@Mohamad. Bro when is health record app coming.. will you be doing this in Angular ? waiting for that
Why did you create the Constants class? I didn't see it being used anywhere.
Hi I am using GetAsync method to get byte array response to upload it to s3 bucket but it is taking too long to upload and in the Ui I am getting timeout error.How can I solve this?
Can you let us know how to upload large files
Thank You Mohamad...Can you please tell how to select bucket of your own choice...I want to do same but not for default bucket...I want to select bucket in which i want to upload file.
you can try multipart upload
why it asking for password when you run the application?
is this still valid in 2024
What accent is this?
بما انك عربي يا ريت تتحدث عربي 😅 دعما للعرب
Awesome Explanation, I used it for Digital Ocean Spaces, the config is the 100% the same. i really love your channel