Foxtable(狐表)用户栏目专家坐堂 → 照片重命名什么改


  共有3196人关注过本帖平板打印复制链接

主题:照片重命名什么改

帅哥哟,离线,有人找我吗?
qazlinle6
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:七尾狐 帖子:1503 积分:10158 威望:0 精华:0 注册:2013/6/8 16:19:00
照片重命名什么改  发帖心情 Post By:2022/2/23 10:28:00 [只看该作者]

For Each key As String In e.Files.Keys
                If key = "up1" Then
                    Dim lst As List(of String) = dr.Lines("账号头像图片")
                    For Each fln As String In e.Files(key)
                       ' Dim ddr As DataRow= DataTables("Users").SQLFind("Name='"& e.Cookies("username")  &"' " )
                        e.SaveFile(key,fln, "D:\web\img\头像\" & fln)
                        lst.Add(fln)
                    Next
                    dr.Lines("账号头像图片") = lst
                End If
            Next
            If e.PostValues.ContainsKey("up1_deleted") Then
            Dim Files = e.PostValues("up1_deleted").Split("|")
            Dim lst As List(of String) = dr.Lines("账号头像图片")
            For Each File As String In Files
            lst.Remove(File.Trim(".").Replace("img/头像/",""))
            file = "d:\web\" & File.Trim(".")
            If Filesys.FileExists(file) Then
            Filesys.DeleteFile(file)
            End If
            Next
            dr.Lines("账号头像图片") = lst




            End If
照片重命名什么改

 回到顶部