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

set path to upload control.

1 Answer 37 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mohammad
Top achievements
Rank 1
Mohammad asked on 20 May 2013, 12:55 PM
Hi All,

Can we set the virtual pathe to telerik:RadUploadControl if yes please suggest me how can i set.

Like this. its giving exception
uploaderTest.TargetFolder="http://10.104.2.83/QASOE/GISTest/Images/Photos_Description/Corals/
";

I want to upload images on this path.



Thanks In Advance
Mohammad Sharique

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 23 May 2013, 08:43 AM
Hi Mohammad,

You can set a physical folder as a TargetFolder or a virtual path on the server hosting the RadUploadHandler, but you can't define the TargetFolder to reside on a different server. This is due to the fact that the TargetFolder value is resolved in the RadUploadHandler implementation on the server and the handler needs to map this path to a physical path which can only happen on the server where the handler is hosted.

But if you can get the physical path to the storage folder on the server, you can override the RadUploadHandler.GetTargetFolder() method and set the physical path there instead of calling the base.GetTargetFolder() method.

Regards,
Tina Stancheva
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Mohammad
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or