文件名称:upclass
- 所属分类:
- WEB源码
- 资源属性:
- [Windows] [Visual C] [Basic/ASP] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 7kb
- 下载次数:
- 0次
- 提 供 者:
- I**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
一直以来,由于FileSystemObject的局限,所以ASP最大的难题就是文件上传,大多解决法就是安装
第三方上传组件。可第三方组件有很多问题,有的组件要注册,有的组件要在表单中加上他的版权信息。
还有的就是组件的兼容问题。
在网上也流传了很多无组件上传的代码,但都是只能上传文本文件,或是只能将文件上传到数据库中。
我这段时间在研究ASP,发现可以不用第三方组件上传任意类型的文件。就写了这个类,给大家一
个方便,整个类放在一个文件中: upload_5xsoft.inc 在 Example 目录下还有一个完整的多文件上传示
例程序,可以直接使用。
a)可直接运行于 Windows2000+IIS 5
NT4 或是 Win98+PWS, 要安装ADO2.6 下载地址:http://www.microsoft.com/data/:
<!--#include FILE="upload_5xsoft.inc"--> 就行了
b) 在使用文件上传时, 表单 form 要加上 enctype="multipart/form-data" 即:
<form name="form1" method="post" action="" enctype="multipart/form-data">
<input type="text" value="abc" name="text1">
<input type=file name="file">
<input type=submit name="submit" value="提交">
</form>
-All along, due to the limitations of FileSystemObject, so the biggest problem is the ASP file upload, most of the solution method is to install
Third-party upload components. Third-party components can be a lot of problems, and some components to be registered, and some components in a form letter with his copyright
Information.
There is the component of the compatibility problems.
The Internet has spread a lot of free component to upload code, but they are only uploading text files, or can upload the file to the database
In.
I study this period of time in ASP, not third-party components that can upload any type of file. To write this class to everyone
A convenient, the whole class in a file: upload_5xsoft.inc in the Example directory there is a complete multilingual
Pieces show uploading
Example program that can be used directly.
a) can be directly run on Windows2000+ IIS 5
NT4 or Win98+ PWS, to install ADO2.6 Download: http://www.microsoft.com
第三方上传组件。可第三方组件有很多问题,有的组件要注册,有的组件要在表单中加上他的版权信息。
还有的就是组件的兼容问题。
在网上也流传了很多无组件上传的代码,但都是只能上传文本文件,或是只能将文件上传到数据库中。
我这段时间在研究ASP,发现可以不用第三方组件上传任意类型的文件。就写了这个类,给大家一
个方便,整个类放在一个文件中: upload_5xsoft.inc 在 Example 目录下还有一个完整的多文件上传示
例程序,可以直接使用。
a)可直接运行于 Windows2000+IIS 5
NT4 或是 Win98+PWS, 要安装ADO2.6 下载地址:http://www.microsoft.com/data/:
<!--#include FILE="upload_5xsoft.inc"--> 就行了
b) 在使用文件上传时, 表单 form 要加上 enctype="multipart/form-data" 即:
<form name="form1" method="post" action="" enctype="multipart/form-data">
<input type="text" value="abc" name="text1">
<input type=file name="file">
<input type=submit name="submit" value="提交">
</form>
-All along, due to the limitations of FileSystemObject, so the biggest problem is the ASP file upload, most of the solution method is to install
Third-party upload components. Third-party components can be a lot of problems, and some components to be registered, and some components in a form letter with his copyright
Information.
There is the component of the compatibility problems.
The Internet has spread a lot of free component to upload code, but they are only uploading text files, or can upload the file to the database
In.
I study this period of time in ASP, not third-party components that can upload any type of file. To write this class to everyone
A convenient, the whole class in a file: upload_5xsoft.inc in the Example directory there is a complete multilingual
Pieces show uploading
Example program that can be used directly.
a) can be directly run on Windows2000+ IIS 5
NT4 or Win98+ PWS, to install ADO2.6 Download: http://www.microsoft.com
(系统自动生成,下载前可以参看下载内容)
下载文件列表
upclass\example\upfile.htm
.......\使用说明.html
.......\example\upfile.asp
.......\.......\upload_5xsoft.inc
.......\upload_5xsoft.inc
.......\example
upclass
.......\使用说明.html
.......\example\upfile.asp
.......\.......\upload_5xsoft.inc
.......\upload_5xsoft.inc
.......\example
upclass