pauseUpload example

6 posts, 0 answers
  1. moegal
    moegal avatar
    273 posts
    Member since:
    Jul 2007

    Posted 15 Apr 2013 Link to this post

    I cannot seem to get the pauseUpload example to work.  Is the example just set up wrong?

    RadAsyncUpload1 is set to ManualUpload but RadAsyncUpload2 is not but the buttons to pause and resume refer to RadAsyncUpload2.

    If pauseUpload() and resumeUpload() are part of  manual upload then the buttons should refer to  RadAsyncUpload1  right?

    I am still using q3 2012 so I cannot test locally. 

    Marty
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 16 Apr 2013 Link to this post

    Hi,

    From Q3.2012 ManualUpload property is available. By setting the ManualUpload property to true users could start the upload of the selected files when they want. In order to start the upload one should invoke the startUpload() method from the client side API of the RadAsyncUpload object.

    From Q1.2013 two more methods were added -pauseUpload() and resumeUpload() to complete Manual Upload functionality. Both of them should be invoked from the client side API of the RadAsyncUpload object as well. The pauseUpload() method pauses the upload and one should keep in mind that it stops right after the currently uploading chunk is uploaded. The resumeUpload() method resumes the upload when its paused.

    Thanks,
    Princy.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. moegal
    moegal avatar
    273 posts
    Member since:
    Jul 2007

    Posted 16 Apr 2013 Link to this post

    Princy,

    Thanks.  I read that as well.  My question is about the example from the demos.

    http://demos.telerik.com/aspnet-ajax/asyncupload/examples/manualupload/defaultcs.aspx

    Does the above  example work for you?? It does not for me.

    Marty
  5. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 18 Apr 2013 Link to this post

    Hi Marty,

    What browser do you use? I have just tested the demo and it seems to be working correctly. Please refer to this video, demonstrating the tests I had performed.

    All the best,
    Hristo Valyavicharski
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  6. moegal
    moegal avatar
    273 posts
    Member since:
    Jul 2007

    Posted 18 Apr 2013 Link to this post

    seems this only works on larger files, and appears to be a delay in when the actual pause starts.  I was testing with smaller files less then 1mb. and they just went on thru.

    I tried in chrome, firefox, opera and IE on windows.
     
    So this only works in browsers that support the file API as well?  Hmm. 

  7. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 23 Apr 2013 Link to this post

    Hi Marty,

    Yes it requires browsers that supports the File API. The sample doesn't work for smaller files, because files are uploaded in chunks. The default ChunkSize is 2097152 Bytes which is equal to 2MB and smaller files are uploaded in one chunk. When pauseUpload() is called it stops uploading after chunk is uploaded.  To make it working for files smaller than 2 MB you will have to decrease value of ChunkSize property.

    All the best,
    Hristo Valyavicharski
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017