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

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

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

  • @joaocampeao2001
    @joaocampeao2001 Год назад +1

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

    • @IAmUmair
      @IAmUmair  Год назад +1

      Glad I could help!

  • @Bukharis
    @Bukharis Месяц назад

    Worked Perfectly .... thanks

  • @ПавелЗиновьев-д9л
    @ПавелЗиновьев-д9л 11 месяцев назад

    Great video ! Thank's a lot !

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

      You are welcome!

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

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

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

      Yes, soon

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

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

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

      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 11 месяцев назад +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  11 месяцев назад

      ​@@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  11 месяцев назад

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

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

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

  • @mayurpandit8166
    @mayurpandit8166 Месяц назад

    Error -
    UnauthorizedAccessException: Access to the path 'C:\Users\source
    epos\StudentPortal.Web\StudentPortal.Web\wwwroot\uploads' is denied.

    • @IAmUmair
      @IAmUmair  Месяц назад

      Can you try with D drive

    • @mayurpandit8166
      @mayurpandit8166 Месяц назад

      @@IAmUmair My system having only c drive, I think I need to divide c drive.