aspcms

以下内容来源网络:

1、后台上传图片出错

我解决了, 附上我的方法,不一定是最好的. 但大家可以参考一下,

在        /asptest/admin/editor/upload.asp 这个文件的 131 行 target=attach_dir+filename 这一句的下面
添加如下几行
        set objfso=Server.CreateObject("Scripting.FileSystemObject")
                                        '判断文件夹是否存在,如果不存在则创建文件夹
                                        If not objfso.FolderExists(server.MapPath(attach_dir)) then
                                                 objfso.CreateFolder server.MapPath(attach_dir)
                                        End if
                                set objfso=nothing

你可能感兴趣的:(aspcms)