Re: Security Exception Thrown under .NET 2.0 Medium Trust While Uploading Files/Media

  •  08-17-2006, 12:46 PM

    Re: Security Exception Thrown under .NET 2.0 Medium Trust While Uploading Files/Media

    Thanks Adam, forgive my ignorance here, but I guess what I am not understanding here is that I can very easily upload a file to a unc share (on the same ) using the following:
     
    myfile.SaveAs(Server.MapPath("~/Core/images/staff/") + myfile.FileName);
     
    but the same file path specified in CE config cannot achieve the same:
     
     <security name="FilesGalleryPath">~/documents</security>
     
    I guess CE upload does not use Server.MapPath() for some reason?
     
    So I guess you can see my point that it is a CE issue? I'm not trying to be difficult here, it's just that it seems like a lot of work just to make the file upload work remotely in a situation where and ISP uses UNC.
     
    Thanks,
     
    Jamie
     
     
View Complete Thread