Asp.Net Core API File Upload to Azure Blob Storage

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 33

  • @TheNagyTheater
    @TheNagyTheater 9 місяців тому

    Awesome tutorial, quick, simple, and yet covers everything. Brilliant Sir!

  • @michaelseeger3716
    @michaelseeger3716 Рік тому +1

    Thank you for this brilliant tutorial. In one case I ran into a problem. And that was returning the downloaded file as a "File" from the endpoint. For me it only worked when I finally used Results.File() and not just File in the manner of a static class as you did. Anyways, it worked well and I was glad to have this ressource shared by you to the community 🙏🏼

  • @DurgeshMarathe-zb3ge
    @DurgeshMarathe-zb3ge 4 місяці тому

    Awesome tutorial, quick, simple, and yet covers everything. Brilliant Sir!
    this exactly that i want

  • @hrishikeshgarud7177
    @hrishikeshgarud7177 7 місяців тому +1

    Can you make video on how to get the current uploading or downloading percentage for this? e.g. 10% uploaded , 90% ,100%. Currently its only await blobClient.UploadAsync(filePath, true); so i cannot get percentage from it.

  • @danielrdm
    @danielrdm 7 місяців тому

    If you put the URI of the file on browser (from response body), it would show it? that means, that you could use it on a web page html?

  • @annatioxzus5200
    @annatioxzus5200 10 місяців тому

    I loove this video, but how can I reuse the code for different containers inside the same storageaccount for dev/prod environment?

  • @oleksiichypizhenko5170
    @oleksiichypizhenko5170 9 місяців тому

    Thanks a lot for this tutorial

  • @siddheshswa
    @siddheshswa 8 місяців тому

    Can you please share video for Azure AD authentication to access blob storage ?

  • @bookuha
    @bookuha Рік тому

    Hi! Could you please make a video in how to map REST API to your DDD-driven app? For example when PUT/PATCH on some of the resource fields have to invoke some specific business logic, not just validate content length

  • @bongbuincyril6150
    @bongbuincyril6150 Рік тому

    My God this is excellent thanks man great job

  • @DChristop
    @DChristop Рік тому

    How easy is to authenticate users from database table ?

  • @nagarajuboda5922
    @nagarajuboda5922 Рік тому +1

    i need solusation sir

  • @tobor58
    @tobor58 5 місяців тому

    Great Video - what IDE are you using?

    • @hedin8891
      @hedin8891 4 місяці тому

      Intellij Rider

  • @akdemirsafak
    @akdemirsafak 10 місяців тому

    Thank you, usefull.🙂

  • @McListenUp
    @McListenUp 10 місяців тому

    should we worry about the size of the uploaded files? will the stream handle that part?

    • @pt_trainer9244
      @pt_trainer9244 8 місяців тому

      you should handle that before you upload,

  • @henrik3098
    @henrik3098 Рік тому

    thanks brother from another mother nice beard bro

  • @AhmedMohammed23
    @AhmedMohammed23 Рік тому

    but how can i upload multiple files at the same time with some data lets say for example the the user will upload some images with captions like
    class image
    {
    string caption;
    iformfile image
    }
    can i just do that
    [post] async upload (list images)
    or
    class userImages
    {
    string userid;
    list images
    }
    [post] async upload (userImages userImages)

    • @Codewrinkles
      @Codewrinkles  Рік тому

      You create a Dto that contains user inputs + IFormFile property for the file.
      Then you take in a List (or YourDto[]) in your controller action.

    • @AhmedMohammed23
      @AhmedMohammed23 Рік тому

      @@Codewrinkles while this would work i was try to ask how to do the same when IFormFile is nested in a class with other data and that class is used as list in the class which have the user inputs and i will use
      or there a better way to upload and save the files only if the user inputs was also received and saved to the database

  • @nove1398
    @nove1398 Рік тому

    Just a question here, why use it as a singleton?

    • @Codewrinkles
      @Codewrinkles  Рік тому +1

      Because there are no constraints that would impose you to do otherwise. You can have just one instance of your service and do all those operations with the same instance. As long as the service itself doesn't keep any state that might change from one operation to the other, you can use singletons.

    • @nove1398
      @nove1398 Рік тому

      @@Codewrinkles fair enough

  • @JasonWilson-xq3fp
    @JasonWilson-xq3fp 7 місяців тому

    Seems pretty tightly coupled and untestable. WHy didn't you inject the client?

  • @loadiam
    @loadiam Рік тому

    Great video.

  • @bloopers2967
    @bloopers2967 Рік тому

    Make a video on fetching the file with different scenarios(all the files, single file, file with timestamp, file from particular folder etc) as well, that’ll willingly be great. I couldn’t find that type of video on UA-cam. Thanks for your content

    • @Codewrinkles
      @Codewrinkles  Рік тому

      Hmmm. From the API perspective it doesn't really chane too much. You would just need to get an IFormFile[] instead IFormFile in your body. I assume your challenges reside more on the front end, right?