set path to upload control.

2 posts, 0 answers
  1. Mohammad
    Mohammad avatar
    2 posts
    Member since:
    May 2013

    Posted 20 May 2013 Link to this post

    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

    I want to upload images on this path.

    Thanks In Advance
    Mohammad Sharique
  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 23 May 2013 Link to this post

    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.

    Tina Stancheva

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top