我刚刚将一个站点从专用服务器移至GoDaddy共享主机帐户,刚刚遇到大量问题!一个正在ASP上传。ASP上传组件 - 经典ASP
在传统的ASP,这就是我通常会做将文件上传到我的文件夹:
Set upload = Server.CreateObject("Persits.Upload")
uploadPath = Server.MapPath("../../files/photos/"&token_&"/")
upload.IgnoreNoPost = True
upload.Save(uploadPath)
Set upload = Nothing
但自从搬到GoDaddy的,我得到这个讨厌的消息:
This feature has been disabled by the system administrator. Use SaveVirtual instead.
我去在ASP上传的网站文档,我找不到SaveVirtual,只有SaveAsVirtual这是我已经成为脱钩的地方。
我试过使用SaveAsVirtual,但它抛出一个错误,指出我正在使用物理路径,我应该使用虚拟路径!我真的不明白这一点,并希望有人能让我变得直率。我的网站现已被视为中断,并处于离线状态,请帮助。
这是我的物理/虚拟路径错误之前尝试:
Set upload = Server.CreateObject("Persits.Upload")
uploadPath = Server.MapPath("../../files/photos/"&token_&"/")
upload.IgnoreNoPost = True
upload.SaveAsVirtual(uploadPath)
Set upload = Nothing
非常感谢@RedFilter,你救了我的一天! – TheCarver 2012-03-21 14:27:22