How to upload file in Asp.Net Core MVC | C# | IAmUmair

Поделиться
HTML-код
  • Опубликовано: 2 июн 2024
  • In this video, we shall learn about how to upload file in Asp.Net Core MVC and C#. It is one of the necessary part of any web technology so that's why I have come up with this video for you.

Комментарии • 12

  • @joaocampeao2001
    @joaocampeao2001 6 месяцев назад +1

    Thank you!!! your video helped me finish a college project

    • @IAmUmair
      @IAmUmair  6 месяцев назад +1

      Glad I could help!

  • @user-de4wj5lc7n
    @user-de4wj5lc7n 5 месяцев назад

    Great video ! Thank's a lot !

    • @IAmUmair
      @IAmUmair  5 месяцев назад

      You are welcome!

  • @sergiorenatosteglich3087
    @sergiorenatosteglich3087 5 месяцев назад

    Hello...
    Great presentation.
    Will you show the video on how to edit?

  • @ozcanackyldz6784
    @ozcanackyldz6784 5 месяцев назад +1

    This is ridiculous, how did you record it in the database, where is the model and how did you edit it?

    • @IAmUmair
      @IAmUmair  5 месяцев назад

      what's ridiculous here? video is about file upload to the project folder, and it's working fine.
      for uploading file to database, you can save filename (with path) in database and access it by providing the file path.

    • @mavisackyldz2135
      @mavisackyldz2135 5 месяцев назад +1

      First of all, I follow you with pleasure. But the video was not very descriptive, the model was not visible. I tried to do it. As a new learner, I laughed at the recording incident without showing the model.@@IAmUmair

    • @IAmUmair
      @IAmUmair  5 месяцев назад

      ​@@mavisackyldz2135 My apologies for the confusion.
      In this video I haven't used any model. Instead I made use of html form input and IFormFile interface of c#.
      If you want to make use of Model, then define a property like this and bind with form.
      public IFormFile file{get;set;}

    • @IAmUmair
      @IAmUmair  5 месяцев назад

      @@mavisackyldz2135 let me know if you are not able to figure out this.

    • @MazorKing001
      @MazorKing001 3 месяца назад

      @@IAmUmair Hi I would to get a explanation please.