以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]获取上传文件ID  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=186304)

--  作者:bzqlyj
--  发布时间:2023/4/20 13:28:00
--  [求助]获取上传文件ID
上传
hc.Files.Add("up1","c:\\data\\abc.jpg")
hc
.Files.Add("up1","c:\\data\\订单.xls")
hc
.Files.Add("up2","c:\\data\\附件.zip")

接收
sb.AppendLine("服务器收到的文件有:")
        For Each key As String In e.Files.Keys
            sb.AppendLine(Key)
            For Each fl As String In e.Files(key)
                sb.AppendLine("    " & fl)
                e.SaveFile(key,fl,"d:\\web\\uploadfiles\\" & fl)
\'
保存接收到的文件
            Next
        Next
这样接收:UP1与UP2都在同一个文件夹内,如何使UP1的在d:\\web\\uploadfiles1\\下,UP2的在d:\\web\\uploadfiles2\\下

--  作者:有点蓝
--  发布时间:2023/4/20 13:39:00
--  
e.SaveFile(key,fl,"d:\\web\\uploadfiles" & key。replace("up","") & "\\" & fl)