Files cannot be uploaded to virtual Directory

5 posts, 0 answers
  1. Technology
    Technology avatar
    53 posts
    Member since:
    Jul 2010

    Posted 31 Oct 2011 Link to this post

    Dear support team,

    i cannot upload a file to my server.
    I use the example from "http://demos.telerik.com/aspnet-ajax/upload/examples/async/monitorprogress/defaultvb.aspx?product=asyncupload".
    In the "TargetFolder" property i use a Virtual Directory from my IIS "TestDir". e.x. TargetFolder="TestDir"
    The file is NOT uploaded and i do not receive any error message.
    Can you please help me to save my file in the server?

    I have latest version.

    Thank you in advance for you time.
    Best regards,
    George.

    <script type="text/javascript">
            function fileUploaded(sender, args) {
                var name = args.get_fileName();
                var $ = $telerik.$;
     
                $(".info-panel").
                    append($("<div>" + name + "</div>")).show();
            }
    </script>
     
    <div class="upload-panel">
                        <%-- For the purpose of this demo the files are discarded.
                 In order to store the uploaded files permanently set the TargetFolder property to a valid location. --%>
                        <telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" OnClientFileUploaded="fileUploaded"
                            MultipleFileSelection="Automatic" TargetFolder="~/ImportPPC">
                        </telerik:RadAsyncUpload>
                        <telerik:RadProgressArea runat="server" ID="RadProgressArea1">
                        </telerik:RadProgressArea>
                    </div>
                    <div class="info-panel">
                        Uploaded files in the target folder:
                        <br />
                    </div>

     
  2. Technology
    Technology avatar
    53 posts
    Member since:
    Jul 2010

    Posted 02 Nov 2011 Link to this post

    Dear support,

    any news???
  3. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 03 Nov 2011 Link to this post

    Hi George,

    When setting TargetFolder, RasAsyncUpload is looking for a folder that in the project's folder or a root path. It is not possible to use a virtual directory.

    Regards,
    Peter Filipov
    the Telerik team
    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 their blog feed now
  4. Vanika
    Vanika avatar
    7 posts
    Member since:
    Jul 2012

    Posted 10 Jul 2012 Link to this post

    Can we not give directory path in TargetFolder ? If we are working in a web farm, we need to upload the files to a shared loaction. How can this be achieved ?

    Thanks,
    Vanika
  5. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 13 Jul 2012 Link to this post

    Hello Vanika,

    In order to work RadAsyncUpload control in web farm, its property TemporaryFolder should be set to a shared folder.

    Kind regards,
    Peter Filipov
    the Telerik team
    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 their blog feed now.
Back to Top