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

Files cannot be uploaded to virtual Directory

4 Answers 114 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Technology
Top achievements
Rank 1
Technology asked on 31 Oct 2011, 12:55 PM
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>

 

4 Answers, 1 is accepted

Sort by
0
Technology
Top achievements
Rank 1
answered on 02 Nov 2011, 04:27 PM
Dear support,

any news???
0
Peter Filipov
Telerik team
answered on 03 Nov 2011, 10:34 AM
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
0
Vanika
Top achievements
Rank 1
answered on 10 Jul 2012, 01:45 PM
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
0
Peter Filipov
Telerik team
answered on 13 Jul 2012, 09:49 AM
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.
Tags
AsyncUpload
Asked by
Technology
Top achievements
Rank 1
Answers by
Technology
Top achievements
Rank 1
Peter Filipov
Telerik team
Vanika
Top achievements
Rank 1
Share this question
or