RadAsyncUpload uploads the file even after clicking 'Cancel'

6 posts, 0 answers
  1. Ravin
    Ravin avatar
    8 posts
    Member since:
    Dec 2012

    Posted 20 Nov 2013 Link to this post

    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">
  2. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 22 Nov 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Peter
    Peter avatar
    5 posts
    Member since:
    Oct 2013

    Posted 27 Nov 2013 Link to this post

    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?
  5. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 02 Dec 2013 Link to this post

    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.
  6. Ravin
    Ravin avatar
    8 posts
    Member since:
    Dec 2012

    Posted 02 Jan 2014 Link to this post

    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?
  7. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 07 Jan 2014 Link to this post

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