RadUpload Set TragetFolder

4 posts, 0 answers
  1. Vino
    Vino avatar
    15 posts
    Member since:
    Jun 2009

    Posted 15 Oct 2009 Link to this post

    Hi,

    I am working on RadUpload SilverLight Control , I want to set the TragetFolder programmatically because my application requirement is like that the Folders are created at the Runtime and giving a number.

    Kindly suggest me to sort out this problem.

    Thanks

    Regards
    Vinodh
  2. Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 16 Oct 2009 Link to this post

    Hi Vino,

    Thank you for your interest in the RadUpload control.

    You can initialize the RadUpload's TargetFolder property in your code behind too. For example
        this.uploadControl.TargetFolder = "MyStorageFolder";
    is a legal expression.

    Please try the attached application and let us know if you have other questions.

    Best wishes,
    Ivan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Vino
    Vino avatar
    15 posts
    Member since:
    Jun 2009

    Posted 19 Oct 2009 Link to this post

    HI,

    Thanks for the reply , Actually I am creating the Folder at runtime and I want to assigned that Folder as the TragetFolder.
    I have used the Class files are provided by Telerik  Demo  RadUploadProperties.cs and UploadedFileInfo.cs .

    Kindly help me to correct this error and Assign the a TragetFolder .

    I am to create the Directory at the In "MyStorageFolder"
    But I am unable to Upload the Files.

    I am using this function to Create the Directory .

    string TempStorePath = "~/MyStorageFolder" 

     public void CreateDir()
            {
                try
                {
                    UploadHolder = TempStorePath + "NewFolder" + DateTime.Now.ToString("ddMMyyhhmmss"); 
    // NewFolder-20090801000000 Folder will be same thing like this
                    Directory.CreateDirectory(Server.MapPath(UploadHolder));
                }
                catch (Exception ex)
                {

                }
            }


    Thanks
    Regards

    Vinodh
  5. Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 22 Oct 2009 Link to this post

    Hello Vino,

    Please preview the Personalize the Upload Storage article. There is a working example how to create a personalized target folder depending on user authorization information. Please give it a try and let me know if we can assist you further.

    Best wishes,
    Ivan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top