raksmart活动促销

分享

写回答

发帖

LunarPages,access后台不能上传文件

国外虚拟主机 国外虚拟主机 2586 人阅读 | 10 人回复

发表于 2009-4-2 17:31:22 | 显示全部楼层 |阅读模式

LunarPages,access数据库,后台不能上传文件,目录权限都设置了。网站都能正常访问,但是在网站后台中,不能上传文件。
错误提示
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

希望高手指教。谢谢

回答|共 10 个

一路同行

发表于 2009-4-3 09:19:14 | 显示全部楼层

哪个后台?程序后台还是控制面板?

panda08

发表于 2009-4-3 13:05:14 | 显示全部楼层

通过网页上传文件的形式。不是用PLESK。例如进入http://www.XXXX.com/admin/login.asp,不能在里面上传文件到虚拟空间。
RAKSmart

一路同行

发表于 2009-4-3 13:17:47 | 显示全部楼层

你是程序上传吗?不能上传有什么错误提示

panda08

发表于 2009-4-3 13:36:56 | 显示全部楼层

上传图片
555.JPG


错误提示
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

一路同行

发表于 2009-4-3 13:45:14 | 显示全部楼层

这是什么程序?上传是用什么组件?

panda08

发表于 2009-4-3 13:53:34 | 显示全部楼层

asp语言代码如下:

<%
a=Request.TotalBytes
if a>0 Then
Set c=Createobject("adodb.stream")
c.Type=1
c.Open
c.Write Request.BinaryRead(a)
c.Position=0

d=c.Read
e=chrB(13)&chrB(10)
f=Instrb(d,e)
g=Instrb(f+1,d,e)

set h=Createobject("adodb.stream")
h.Type=1
h.Open
c.Position=f+1
c.Copyto h,g-f-3
h.Position=0
h.type=2
h.CharSet="BIG5"
i=h.Readtext
h.close

j=mid(i,InstrRev(i,"\")+1,g)
mm="doc|xls|zip|rar|gif|jpg|jpeg|bmp|swf|exe"



j=replace(date,"-","")&hour(now())&minute(now())&second(now())&right(j,len(j)-instr(j,".")+1)

set fso=server.createobject("scripting.filesystemobject")
set fso=nothing


k=Instrb(d,e&e)+4
l=Instrb(k+1,d,leftB(d,f-1))-k-2
h.Type=1
h.Open
c.Position=k-1
c.CopyTo h,l
h.SaveToFile server.mappath("/uploadfile")&"/"&j,2
Response.write "<SCRIPT language=javascript charset='gb2312'>parent.lsmform.uppic.value='"&"uploadfile/"&j&"';</script>"  

end if
%>

一路同行

发表于 2009-4-3 14:16:00 | 显示全部楼层

LP的windows主机貌似不支持adodb.stream

panda08

发表于 2009-4-3 14:28:59 | 显示全部楼层

你的意思我不能在这里上传文件了?

一路同行

发表于 2009-4-3 15:12:47 | 显示全部楼层

这样子应该上传不了,你可以联系他们客服问问支持什么组件上传
您需要登录后才可以回帖 登录 | 注册

本版积分规则