.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

ความคิดเห็น • 28

  • @arthurcera
    @arthurcera ปีที่แล้ว

    Thanks, this helped a lot, your tutorial was awesome, extremally well explained!

  • @dogukanergezer9760
    @dogukanergezer9760 2 ปีที่แล้ว +1

    Thank you Mohamad.
    Really good tutorial 🚀🚀. Please share more aws videos.

  • @mr.nobody4494
    @mr.nobody4494 2 ปีที่แล้ว +1

    Thanks for the video!

  • @francogiulianopertile279
    @francogiulianopertile279 4 หลายเดือนก่อน

    Awesome Explanation, I used it for Digital Ocean Spaces, the config is the 100% the same. i really love your channel

  • @nicolasbenitiz671
    @nicolasbenitiz671 ปีที่แล้ว

    Great tutorial, my friend. Such a good video

  • @i.t.9015
    @i.t.9015 ปีที่แล้ว

    Great job, thank you!

  • @charlliemurphy8381
    @charlliemurphy8381 ปีที่แล้ว

    Solid tutorial!

  • @cleysonlima9479
    @cleysonlima9479 ปีที่แล้ว

    Thanks, your video help me a lot.

  • @rsr9377
    @rsr9377 ปีที่แล้ว

    Thank you for this tutorial. 😀

  • @Sam-yb9ut
    @Sam-yb9ut ปีที่แล้ว

    Thank you very good video

  • @chuonchuon7386
    @chuonchuon7386 4 หลายเดือนก่อน

    Thanks Mohamad

  • @uuzo_art6088
    @uuzo_art6088 ปีที่แล้ว

    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?

  • @SumitPandey-kt9ty
    @SumitPandey-kt9ty ปีที่แล้ว

    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.

  • @Aloncr7
    @Aloncr7 ปีที่แล้ว

    Great video, please make a video of also reading a file from s3 and returning iformfile

  • @arpitpgupta
    @arpitpgupta ปีที่แล้ว

    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.

  • @enyeluchukwuebukaj.7600
    @enyeluchukwuebukaj.7600 ปีที่แล้ว

    Hello Mohammad, is it possible to get the the upload url after uploading a document?

  • @saifumar3001
    @saifumar3001 2 ปีที่แล้ว

    @Mohamad. Bro when is health record app coming.. will you be doing this in Angular ? waiting for that

  • @electrocatalyst
    @electrocatalyst 7 หลายเดือนก่อน

    Why did you create the Constants class? I didn't see it being used anywhere.

  • @kavyahj8827
    @kavyahj8827 3 หลายเดือนก่อน

    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?

  • @Sam-yb9ut
    @Sam-yb9ut ปีที่แล้ว

    Can you let us know how to upload large files

  • @gagandeepsingh5714
    @gagandeepsingh5714 ปีที่แล้ว

    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.

    • @bhuvans1166
      @bhuvans1166 6 หลายเดือนก่อน

      you can try multipart upload

  • @comment.only0598
    @comment.only0598 ปีที่แล้ว

    why it asking for password when you run the application?

  • @harrisonwell1719
    @harrisonwell1719 วันที่ผ่านมา

    is this still valid in 2024

  • @salmi_azrinparentsonly863
    @salmi_azrinparentsonly863 ปีที่แล้ว

    What accent is this?

  • @jstoturial9293
    @jstoturial9293 11 หลายเดือนก่อน

    بما انك عربي يا ريت تتحدث عربي 😅 دعما للعرب

  • @francogiulianopertile279
    @francogiulianopertile279 4 หลายเดือนก่อน

    Awesome Explanation, I used it for Digital Ocean Spaces, the config is the 100% the same. i really love your channel