RadUrid=xxx querystring - cannot find a part of the path error

2 posts, 0 answers
  1. Grant Perry
    Grant Perry avatar
    3 posts
    Member since:
    Sep 2007

    Posted 23 Nov 2010 Link to this post

    After i select a file for upload, then hit a submit button (standard <asp:Imagebutton) - I get an error:

    Cannot find a part of the path

    and a querystring of RadUrid= has been added

    Here is the aspx code:

    <telerik:RadProgressManager runat="server" ID="RadProgressManager1" EnableMemoryOptimization="false" />
                            <telerik:RadAsyncUpload runat="server" ID="AsyncUp1" 
                                OnClientFileUploaded="fileUploaded" TargetFolder="/images/BlogThumbs" AllowedFileExtensions=".jpg,.tif,.png,.gif,.jpeg" />
                              
                            <telerik:RadProgressArea runat="server" ID="RadProgressArea1" />

    and the fileUploaded script:

    function fileUploaded(sender, args)
            {
            var name = args.get_fileName();
            var $ = $telerik.$;
                  
            $(".info-panel").
            append($("<div>" + name + "</div>")).show();
            }

    It was working - and i just upgraded to the newest 2010 version.

    Any ideas?

  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 29 Nov 2010 Link to this post

    Hello Grant Perry,

    The exception you get is thrown because the Upload cannot find the TargetFolder. The property accepts either an absolute or a relative path, so in your case, you need it to be "~/images/BlogThumbs".

    As for the RadUrid query parameter, please read this help article for more information.

    I hope this helps.

    Kind regards,
    Simon
    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.
Back to Top