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

Many uploads are dropped

3 Answers 57 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Tomas
Top achievements
Rank 1
Tomas asked on 26 Mar 2013, 02:10 PM
I have implemented Kendo MVC Upload to our ASP.NET MVC 4.0 web app. Unfortunately we get many  dropped uploads. 

The upload method is executed but it contain empty file list and Request.ContentLengh and Request.TotalBytes do not match. Do you have any idea why this happens?

 [HttpPost]
public ActionResult UploadFile(IEnumerable<HttpPostedFileBase> clientUpload, [OptionModelBinder]IOptionViewModel formData)
{
//our action
}

3 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 28 Mar 2013, 08:55 AM
Hello Tomas,

I would like to ask you some questions.

Did you follow the exact same instruction from the documentation?

http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/helpers/upload/overview

The name attribute is required and must be unique. It will be used as a form field name in the requests to the server.

Did you name your widget "clientUpload" ?

If you did can you share with us a sample project so we can see what exactly is the case?


Kind Regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Tomas
Top achievements
Rank 1
answered on 25 Sep 2013, 12:14 PM
I have followed the instruction and my Kendo code below

            @(Html.Kendo().Upload()
                  .Name("clientUpload")
                  .Async(async => async
                                      .Save("UploadFile", "File").Batch(true)
                                      .Remove("Remove", "File")
                                      .AutoUpload(false)
                  )
                  .ShowFileList(false)
                  .Multiple(true)
                  .Events(events => events
                                        .Select("upload.onSelect")
                                        .Upload("upload.onUpload")
                                        .Success("upload.onSuccess")
                                        .Error("upload.onError")
                  /*.Progress("upload.onProgress")*/
                  ).Messages(m => m.Select("Click here to select a file and convert to..."))
                  )

The config file 

 <system.web>
    <httpRuntime targetFramework="4.5" maxRequestLength="81920" executionTimeout="1200" />
....

    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="83886080" />
      </requestFiltering>
    </security>

The widget name "clientUpload".









0
T. Tsonev
Telerik team
answered on 27 Sep 2013, 10:04 AM
Hi,

We can suggest the following actions to narrow down the problem:

  • Replace the upload with a regular input type="file" in a form. Post the form using regular submit button
    If you get the same behavior then we can be sure that the problem is in the Upload widget itself.
  • Try a direct upload If using a proxy
  • Use Fiddler and/or Wireshark to observe and record the failed network sessions.

I hope this will give us some clues on where to look next.
Regards,
T. Tsonev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Upload
Asked by
Tomas
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Tomas
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or