deleteFileInputAt method throws exception in IE

Thread is closed for posting
3 posts, 0 answers
  1. Brent
    Brent avatar
    14 posts
    Member since:
    Apr 2008

    Posted 29 Nov 2010 Link to this post

    I am having an issue where the client-side method deleteFileInputAt() method is throwing an exception when I pass in a zero in the OnClientFileUploaded event.  It only does this in Internet Explorer.  Firefox works just fine, or at least it is not throwing an exception.  Any ideas please?

    I have tried first calling the getUploadedFiles() method to check the count prior to calling the deleteFileInputAt(), but oddly I get a javascript error saying that the getUploadedFiles() method does not exist.  I am frustrated.

    Here is the function I am call in the OnClientFileUploaded event.

     

     

    function resumeFileUploaded(sender, args) {

     

    sender.deleteFileInputAt(0);

    }

  2. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 02 Dec 2010 Link to this post

    Hello Brent,

    Are you using RadUpload or RadAsyncUpload?
    The code below works for RadAsyncUpload:

    <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" Skin="WebBlue" OnClientFileUploaded="fileUploaded">
    </telerik:RadAsyncUpload>
           <script type="text/javascript">
            function fileUploaded(sender, eventArgs)
            {
                alert(sender.getUploadedFiles().length)
                sender.deleteFileInputAt(0);
            }
             
           </script>

    Regards,
    Helen
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Brent
    Brent avatar
    14 posts
    Member since:
    Apr 2008

    Posted 16 Dec 2010 Link to this post

    For some reason, I am not seeing this issue anymore.  I obviously must have had something wrong, or something else has changed which corrected the problem.
Back to Top