Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Upload File using IFormFile #5345


User avatar
0
maharatha created

I am trying to create a Upload component using the demo Ui file upload example. But I am unable to find a way how i can upload using Angular and Asp.net core 2 similar to that of Demo Ui Upload.

public async Task<Guid> UploadFile(IFormFile file).

Can you please guide me on what to changes the existing demo upload component so that it can work with the new upload service which take File as an input


1 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    We use controller instead of app service to file upload in Angular.

    Check : *.Web.Core\Controllers\DemoUiComponentsController.cs or *.Web.Core\Controllers\ChatControllerBase.cs