求:ASPUpload 3.0 图片上传源码,谢谢了!ASP
请贴下代码。。。。谢谢了Persits.Upload.1error'800a0028'Thisfeaturehasbeendisabledbysystemadminist...
请贴下代码。。。。谢谢了
Persits.Upload.1 error '800a0028'
This feature has been disabled by system administrator. Use SaveVirtual instead.
/admin/admin_saveupfile.asp, line 59
upload.save server.MapPath("uppics") 59 hang
filename=upload.files("file").path
isspic=upload.Form("hdnISSPic")
while instr(filename,"\")<>0
filename=mid(filename,instr(filename,"\")+1,len(filename)-instr(filename,"\"))
wend
tp1="<img src=uppics\\"&filename&" width=200 height=150 border=0>"
if isspic="1" then
response.write "<script>parent.form1.hdnSPicName.value='"&tp1&"'</script>"
end if 展开
Persits.Upload.1 error '800a0028'
This feature has been disabled by system administrator. Use SaveVirtual instead.
/admin/admin_saveupfile.asp, line 59
upload.save server.MapPath("uppics") 59 hang
filename=upload.files("file").path
isspic=upload.Form("hdnISSPic")
while instr(filename,"\")<>0
filename=mid(filename,instr(filename,"\")+1,len(filename)-instr(filename,"\"))
wend
tp1="<img src=uppics\\"&filename&" width=200 height=150 border=0>"
if isspic="1" then
response.write "<script>parent.form1.hdnSPicName.value='"&tp1&"'</script>"
end if 展开
展开全部
首先你要有ASPUpload软件
表单:
<form name="form1" method="post" action="001tjsave.asp">
<table width="527" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="43" height="30" align="right"><span class="STYLE2">图片:</span></td>
<td width="168" height="30"><label>
<input name="tp1" type="text" id="tp1">
</label></td>
<td height="30" colspan="2"><iframe name="t" src="upload1.asp" width="100%" height="25" marginheight="0" frameborder="0"></iframe></td>
</tr>
<tr>
<td height="30"> </td>
<td height="30"> </td>
<td width="80" height="30"> </td>
<td width="215" height="30"><label>
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置">
</label></td>
</tr>
</table>
</form>
upload1.asp
<form action="uploadsave1.asp" method="post" enctype="multipart/form-data" name="form1" id="form1">
<label>
<input name="tpupload" type="file" id="tpupload" />
</label>
<label>
<input type="submit" name="Submit" value="上传" />
</label>
</form>
uploadsave1.asp
<%set upload=server.CreateObject("persits.upload")
upload.save server.MapPath("upload")
filename=upload.files("tpupload").path
while instr(filename,"\")<>0
filename=mid(filename,instr(filename,"\")+1,len(filename)-instr(filename,"\"))
wend
tp1="<img src=upload\\"&filename&" width=200 height=150 border=0>"
Response.Write "<script>parent.form1.tp1.value+='"&tp1&"' </script>"
Response.Write "<script>history.back()</script>"
%>
以上就可以实现图片上传,但是表单的保存你要放在哪里我就不知道了.
表单:
<form name="form1" method="post" action="001tjsave.asp">
<table width="527" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="43" height="30" align="right"><span class="STYLE2">图片:</span></td>
<td width="168" height="30"><label>
<input name="tp1" type="text" id="tp1">
</label></td>
<td height="30" colspan="2"><iframe name="t" src="upload1.asp" width="100%" height="25" marginheight="0" frameborder="0"></iframe></td>
</tr>
<tr>
<td height="30"> </td>
<td height="30"> </td>
<td width="80" height="30"> </td>
<td width="215" height="30"><label>
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置">
</label></td>
</tr>
</table>
</form>
upload1.asp
<form action="uploadsave1.asp" method="post" enctype="multipart/form-data" name="form1" id="form1">
<label>
<input name="tpupload" type="file" id="tpupload" />
</label>
<label>
<input type="submit" name="Submit" value="上传" />
</label>
</form>
uploadsave1.asp
<%set upload=server.CreateObject("persits.upload")
upload.save server.MapPath("upload")
filename=upload.files("tpupload").path
while instr(filename,"\")<>0
filename=mid(filename,instr(filename,"\")+1,len(filename)-instr(filename,"\"))
wend
tp1="<img src=upload\\"&filename&" width=200 height=150 border=0>"
Response.Write "<script>parent.form1.tp1.value+='"&tp1&"' </script>"
Response.Write "<script>history.back()</script>"
%>
以上就可以实现图片上传,但是表单的保存你要放在哪里我就不知道了.
AiPPT
2024-09-19 广告
2024-09-19 广告
随着AI技术的飞速发展,如今市面上涌现了许多实用易操作的AI生成工具1、简介:AiPPT: 这款AI工具智能理解用户输入的主题,提供“AI智能生成”和“导入本地大纲”的选项,生成的PPT内容丰富多样,可自由编辑和添加元素,图表类型包括柱状图...
点击进入详情页
本回答由AiPPT提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询