Many uploads are dropped

4 posts, 0 answers
  1. Tomas
    Tomas avatar
    41 posts
    Member since:
    Feb 2011

    Posted 26 Mar 2013 Link to this post

    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
    }

  2. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 28 Mar 2013 Link to this post

    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!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Tomas
    Tomas avatar
    41 posts
    Member since:
    Feb 2011

    Posted 25 Sep 2013 Link to this post

    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".









  5. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 27 Sep 2013 Link to this post

    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!
Back to Top
UI for ASP.NET MVC is VS 2017 Ready