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

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

1 Answer 69 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Grant Perry
Top achievements
Rank 1
Grant Perry asked on 24 Nov 2010, 01:40 AM

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?

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 29 Nov 2010, 11:20 AM
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.
Tags
AsyncUpload
Asked by
Grant Perry
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or