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

RadUpload Set TragetFolder

3 Answers 118 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Vino
Top achievements
Rank 1
Vino asked on 15 Oct 2009, 10:44 AM
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

3 Answers, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 16 Oct 2009, 12:08 PM
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.
0
Vino
Top achievements
Rank 1
answered on 19 Oct 2009, 08:46 AM
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
0
Ivan
Telerik team
answered on 22 Oct 2009, 11:04 AM
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.
Tags
Upload
Asked by
Vino
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Vino
Top achievements
Rank 1
Share this question
or