如何使用AspUpLoad上传图像的同时使用AspJpeg生成缩略图

来源:百度知道 编辑:UC知道 时间:2024/05/26 18:58:00
如何使用AspUpLoad上传图像的同时使用AspJpeg生成缩略图

表单如下:
<form action="" method="post" enctype="application/x-www-form-urlencoded" name="form1" id="form1">
<input type="file" name="ImgUpLoad" id="ImgUpLoad" />
<input type="file" name="TxtUpLoad" id="TxtUpLoad" />
<input type="text" name="Title" id="Title" />
<input type="submit" name="button" id="button" value="提交" />
</form>

我想要上传一个文件,一个图像,和提交标题:
ASP的接收页面如何写呢?
如何不需要AspUpLoad组件,可以使用Persits.Upload
但必须上传的同时,图像要能生成缩略图,而txt文件当然不需要生成缩略图。

这个肯定能符合你的要求,在客户端就可以实现。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>

<BODY>
<title>文件上传前台控制检测程序</title>
<style>
body,td{font-size:12px;}
</style>
<script language=javascript>

/*----------------------------------------
文件上传前台控制检测程序 v0.6

远程图片检测功能
检测上传文件类型

检测图片文件格式是否正确
检测图片文件大小
检测图片文件宽度
检测图片文件高度
图片预览

-----------------------------------------*/

var ImgObj=new Image();