Creating directories

  •  09-07-2005, 1:10 PM

    Creating directories

    Could you tell me how to create directories programaticly, in c# , that users coul upload images into them?
    i've managed to create the dirs but when i try to upload images to there the image aplication says: unable to upload.
    i've tryed the following code:
    Programmatically set the image gallery path 

     Example:    var  folder = "whatever";
       string phyfolder=Server.MapPath(folder);
       System.IO.Directory.CreateDirectory(phyfolder);
       Editor1.Setting["security:ImageGalleryPath"]=
       Editor1.Setting["security:MediaGalleryPath"]=
       Editor1.Setting["security:FlashGalleryPath"]=
       Editor1.Setting["security:FilesGallaryPath"]=
        folder
    but it seem's not to work even with some alterations
View Complete Thread