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

kendoUpload removeURL - "HttpPostedFileBase files" retruns null

1 Answer 162 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Abhishek
Top achievements
Rank 1
Abhishek asked on 31 Jan 2013, 07:07 AM
Hi

On clicking of "Remove" button, RemoveFiles method do get fired but "IEnumerable<HttpPostedFileBase> files" returns null value
 However "SaveFiles" works fine.
                      $("#files").kendoUpload({
                                async: {
                                    saveUrl: "Attachment/SaveFiles",
                                    removeUrl: "WebSite/RemoveFiles",
                                    autoUpload: true
                                },
                                upload: function (e) {

                                }
                        }).data("kendoUpload"); 


 public PartialViewResult RemoveFiles(IEnumerable<HttpPostedFileBase> files)
        {
            if (files != null)
            {
                                 ....................................
            }
            return PartialView("");
        }

Am I missing something here.

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 31 Jan 2013, 06:17 PM
Hello Abhishek,

This is a quote from my answer in the support thread:
The Remove action should receive an array of strings containing the file names instead of IEnumerable<HttpPostedFileBase>. You can find detailed example in the Async file upload demo.

Please let me know if this information helps you.

If you need additional assistance please continue only one of those threads - forum and support.

Kind regards,
Dimiter Madjarov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Abhishek
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or