Hello Telerik Team,
I'd like to know if there's any way to pass in an extra parameter to my controller action when using async upload. Below is what the controller looks like.
One workaround I came up with is to use the route value below. The I can update the saveUrl property of the upload control to inject the correct uploadID before the upload begins.
If there's a proper solution to this, please advice. Thank you!
I'd like to know if there's any way to pass in an extra parameter to my controller action when using async upload. Below is what the controller looks like.
public
ActionResult Save(IEnumerable<HttpPostedFileBase> files,
string
uploadID)
{
}
One workaround I came up with is to use the route value below. The I can update the saveUrl property of the upload control to inject the correct uploadID before the upload begins.
@(Html.Kendo().Upload()
.Name("files")
.Async(a => a
.Save("Save", "Upload", new { uploadID = "XXX" })
.Remove("Remove", "Upload")
.AutoUpload(true)
)
)
If there's a proper solution to this, please advice. Thank you!