This is a migrated thread and some comments may be shown as answers.

Net CORE 2 API Controller for Upload Widget

2 Answers 95 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Vladimir
Top achievements
Rank 1
Vladimir asked on 29 Mar 2018, 08:34 PM

I am trying to create ChunkUploadController for Net Core 2 API Controller follow 

https://demos.telerik.com/aspnet-core/upload/chunkupload

but getting compilation error 

Error CS0144 Cannot create an instance of the abstract class or interface 'FileResult'

on the line 

FileResult fileBlob = new FileResult();

 

Could you guide me how to fix this error?

Thank you,

Vladimir

 

2 Answers, 1 is accepted

Sort by
0
Vladimir
Top achievements
Rank 1
answered on 29 Mar 2018, 08:54 PM

Sorry,

missed the piece of code

 

public class FileResult {

public bool uploaded { get; set; }

public string fileUid { get; set; }

}

0
Dimitar
Telerik team
answered on 30 Mar 2018, 08:16 AM
Hello Vladimir,

I am glad to know that you resolved the error. There is no difference in the demo controller code needed for running the demo with Asp.Net Core 2.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Upload
Asked by
Vladimir
Top achievements
Rank 1
Answers by
Vladimir
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or