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

[Solved] Image upload to sub folders

2 Answers 304 Views
Editor
This is a migrated thread and some comments may be shown as answers.
ric c
Top achievements
Rank 1
ric c asked on 31 Jan 2008, 02:19 PM
Hi

I've set up the editor as follows:

string

root = @"~\Data" + CurrentUser.SiteID + @"\";

editorMain.ImageManager.UploadPaths =

new string[1] { root + "Images"};

editorMain.ImageManager.ViewPaths =

new string[1] { root + "Images"};


This works fine for viewing images and upload images to the main "Images" Directory, however I cannot upload to "Images/subfolder" , I'm sure I'm missing something really simple, but not sure what it is?
any ideas?

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 31 Jan 2008, 02:48 PM
Hello Ric,

You need to replace the \ backward slash with forward / symbol in the root string, e.g.

string root = @"~/Data" + "CurrentUser" + @"/";

This will enable the upload tab in the subfolders.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
ric c
Top achievements
Rank 1
answered on 31 Jan 2008, 03:24 PM
oops... does not get much simpler :)

Thanks!
Tags
Editor
Asked by
ric c
Top achievements
Rank 1
Answers by
Rumen
Telerik team
ric c
Top achievements
Rank 1
Share this question
or