Please change:
void SetUploadsFolder(string folder)
{
string phyfolder=Server.MapPath(folder);
System.IO.Directory.CreateDirectory(phyfolder);
//see security.config
Editor1.Setting["security:ImageGalleryPath"]=
Editor1.Setting["security:ImageBrowserPath"]=
Editor1.Setting["security:MediaGalleryPath"]=
Editor1.Setting["security:FlashGalleryPath"]=
Editor1.Setting["security:FilesGalleryPath"]=
folder;
}
to:
void SetUploadsFolder(string folder)
{
string phyfolder=Server.MapPath(folder);
System.IO.Directory.CreateDirectory(phyfolder);
//see security.config
Editor1.Setting["security:ImageGalleryPath"]=
Editor1.Setting["security:ImageBrowserPath"]=
Editor1.Setting["security:MediaGalleryPath"]=
Editor1.Setting["security:FlashGalleryPath"]=
Editor1.Setting["security:FilesGalleryPath"]=
Editor1.Setting["security:TemplateGalleryPath"]=
folder;
}
Thank you for asking