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

I am trying to use Kendo UI async upload on Razor Page (No controller) But I get 404 error

1 Answer 262 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Nitin
Top achievements
Rank 1
Nitin asked on 07 May 2018, 03:52 PM

Is there an example of Kendo UI async Upload on Razor pages (No controller) ? I tried below but I get 404 error .

 

<div class=""> @(Html.Kendo().Upload() .Name("files") .Async(a => a .Save("Save", "UploadManagement/Index") .Remove("Remove", "UploadManagement/Index") .AutoUpload(true) ) ) </div>

 

[HttpPost]public ActionResult Save(IEnumerable<IFormFile> files){}

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 10 May 2018, 10:50 AM
Hi Nitin,

In order to configure the async upload you could refer to the example in our documentation linked here. Below is an sample configuration where the saveUrl and removeUrl are specified:
<kendo-upload name="files">
    <async auto-upload="true" save-url="~/home/save" remove-url="~/home/remove"/>          
</kendo-upload>

Regards,
Neli
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
Nitin
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or