网络编程 
首页 > 网络编程 > 浏览文章

在无组件的情况下,如何上传图片?

(编辑:jimmy 日期: 2024/10/7 浏览:3 次 )

<html>

<head>

<title>星河影动</title>

</head>

<body>

<tr>

<td height="69"><p align="center">撼雪喷云之无组件上传图片</font></td>

</tr>

<tr>

<td height="9">

<form enctype="multipart/form-data" action="upload.asp" method="post">

' 请求表单信息的编码类型必须使用enctype="multipart/form-data".

<div align="center"><center><p>请选择上传的图片: <br>

</font>  

<input name="picture" type="file" accept="image/*"><br>

' accept将对话框中出现的文件类型限制为图文件.

<input type="submit" value="现在上传"></p>

' 创建上传键.

</center></div>

</form>

</td>

</tr>

</table>

</center></div>

<p>  </p>

</body></html>

 

 

[1]

上一篇:如何限制上传文件的大小?
下一篇:如何实现无组件上传二进制文件?