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

pauseUpload example

5 Answers 23 Views
This is a migrated thread and some comments may be shown as answers.
moegal
Top achievements
Rank 1
moegal asked on 15 Apr 2013, 05:38 PM
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

5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 16 Apr 2013, 07:50 AM
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.

0
moegal
Top achievements
Rank 1
answered on 16 Apr 2013, 11:08 AM
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
0
Hristo Valyavicharski
Telerik team
answered on 18 Apr 2013, 03:43 PM
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.
0
moegal
Top achievements
Rank 1
answered on 18 Apr 2013, 04:29 PM
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. 

0
Hristo Valyavicharski
Telerik team
answered on 23 Apr 2013, 03:19 PM
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.
Asked by
moegal
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
moegal
Top achievements
Rank 1
Hristo Valyavicharski
Telerik team
Share this question
or