凤凰古城去怀化:关于无组件上传

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/28 23:44:20
我用的是文件上传的组件,就是图片是传到目录下的,我在数据库表里建了个uppicpath的字段,是用来存x.jpg的,我想上传后,自动往uppicpath里添加信息,upload.asp里应该加什么
我原来的upload.asp代码
<html>
<head>
<title>添加文件</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="style.css" type="text/css">
</head>

<body background="bkg.gif">
<div align="center">文件上传在站点的<font color="#FF0000">file/</font>目录下。<br>
支持上传的文件格式有:图片文件(*.gif、*.jpg、*.png、*.bmp),动画FLASH文件(*.swf)<br>

</font></span></div>
<form method="post" action="sub_upload.asp" enctype="multipart/form-data">
<table border=0 cellspacing=0 cellpadding=0 align=center width="333">
<tr>
<td height=20 width=60> 文件</TD>
<td height="16" width="371">
<input type="file" name="src" size="20" value="浏览">
  
<input type="submit" value="上传" name="B1" IsShowProcessBar="True">
</td>
</tr>
</table>
</form>
</body>
</html>

5月17日 17:35 无组件上传就是说在服务器端的上传程序是采用脚本文件方式来执行客户端的请求的
使用无组件上传有很多好处
可以不需要有服务器的权限
不用特别去注册上传组件~~
修改\发布起来比较容易
但是效率相对于组件的上传程序确实会有一定的折扣