服务器上传的目录在“安全”中EVERYONE是否有写权限?

解决方案 »

  1.   

    '//////////////////////////////////////////////////////////////////////////////////////
            '上传新闻图片
            sNewsfile = ""
            If PICfile.Value <> "" Then
                Dim Rootpath As String = Server.MapPath(Request.ApplicationPath()) + "\"  '系统目录
                Dim Cancreatefile As String
                '上传文件到临时目录
                sFileName = PICfile.PostedFile.FileName
                'extract file name from full path
                sNewsfile = System.IO.Path.GetFileName(sFileName)
                Cancreatefile = Rootpath + "\temp\Newspic\" + sNewsfile
                PICfile.PostedFile.SaveAs(Cancreatefile) ' 修改成你自己的绝对路径,目录要有写入权限
            End If
      

  2.   

    选中上传文件夹权限中的everyone的全部权限
      

  3.   

    http://xml.sz.luohuedu.net/xml/ShowDetail.asp?id=D8F961C3-CBC1-4591-143D-236B572EB89F
      

  4.   

    http://xml.sz.luohuedu.net/xml/ShowDetail.asp?id=D8F961C3-CBC1-4591-143D-236B572EB89F