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

RadAsyncUpload uploads the file even after clicking 'Cancel'

5 Answers 143 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Ravin
Top achievements
Rank 1
Ravin asked on 20 Nov 2013, 08:21 AM
Clicking 'Cancel' of RadAsyncUpload should truly cancel the ongoing file upload. But when I click cancel, it only removes the progress indicator and displays the 'Remove' button. The actual file still gets uploaded to the server and the 'OnClientFileUploaded' event also gets fired. How can I prevent this from happening?

Telerik version: 2012.2.607.35

<telerik:RadAsyncUpload runat="server" ID="asyncUploader" UploadedFilesRendering="BelowFileInput" MultipleFileSelection="Automatic" AllowedFileExtensions=".jpg,.jpeg,.png,.gif" MaxFileSize="16777216" DisablePlugins="true" TemporaryFileExpiration="00:05:00" OnClientFileUploaded="UploaderOnClientFileUploaded" onClientValidationFailed="UploaderOnClientValidationFailed" onClientFileUploadRemoved="UploaderOnClientFileUploadRemoved">

5 Answers, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 22 Nov 2013, 01:23 PM
Hi Ravin,

What is your browser? Does this reproduces on all the browsers? Where is uploaded the selected file? Paste your javascript code here, so we can see what you are doing.

Thanks.

Regards,
Hristo Valyavicharski
Telerik
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 the blog feed now.
0
Peter
Top achievements
Rank 1
answered on 27 Nov 2013, 02:01 PM
I experience the same issue using IE8 with multiple file uploads, silverlight plugin

Select say 3 large files to upload, immediately cancel the first one, it still continues to upload first file even though its cancelled.  This isn't that bad when you are uploading small files, but large ones it severely impacts the user, slowing the upload (while it uploads an unnecessary file), wasting server & network resources.

This can be replicated on teleriks own multiple file upload page:

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

Appreciate it if you can acknowledge this bug and advise when this is likely to be fixed?
0
Hristo Valyavicharski
Telerik team
answered on 02 Dec 2013, 02:54 PM
Hi Peter,

The described behavior is a development issue, which I have logged into our internal tracking system. Here you can monitor the resolution process. As a temporary workaround you may set the DisablePlugins property to true.

Regards,
Hristo Valyavicharski
Telerik
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 the blog feed now.
0
Ravin
Top achievements
Rank 1
answered on 03 Jan 2014, 03:38 AM
DisablePlugins="true" does not fix the problem. We tried out various hacks/workarounds to truly cancel the uploads but none of them work. We tried clicking the telerik 'cancel' buttons programatically. Does not work. Performed a forced postback. Upload continues after the postback completes. (eg. RadProgressArea re-appears showing the continued upload even after the postback)

We also can't upgrade the telerik version if and when you release this bug fix as our project is based on a platform which is dependent on the telerik version 2012.2.607.35. So we would really appreciate it if you can provide us some sort of a hack to cancel or reinitialize the whole control or something?
0
Kate
Telerik team
answered on 07 Jan 2014, 02:48 PM
Hello Ravin,

Can you please provide more information on the specific browser where you get this issue? Can you also check what is the exact module that you use in your scenario (you can use the get_loadedModuleName() property of the control for example)?

Regards,
Kate
Telerik
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 the blog feed now.
Tags
AsyncUpload
Asked by
Ravin
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Peter
Top achievements
Rank 1
Ravin
Top achievements
Rank 1
Kate
Telerik team
Share this question
or