Package and download (This version is a cracked version for learning only, please do not use it for commercial purposes. Please go to the forum to decompress the password)
AspUpload is a powerful dynamic server upload component! Installing this program allows you to upload various documents through ASP programs!
AspUpload can implement the following functions:
1. Limit the size of uploaded files
2. Set user permissions
3. Modify file properties
4. Upload multiple files at the same time
5. Ability to save files to the database
Today, we want to install the aspupload 3.0 component. The default path to be installed is
C:/Program Files/Persits Software/AspUpload/Bin/aspupload.dll
Open the run window to enter:
regsvr32 C:/Program Files/Persits Software/AspUpload/Bin/aspupload.dll
Note: The format of the registered component is regsvr32 ***.dll
However, it jumped outI guess it's a path problem. Is it because there is a space in the middle of Program Files? I copied aspupload.dll to c:/window/system32/ and re-registered it with
regsvr32 aspupload.dllThe result was successful!
Usage
How can we indicate that we have successfully registered?
The example 1 attached to it can help us solve this problem. There are two files, Form1.asp and UploadScript1.asp, under the 02_simple folder, and put them in a virtual directory. For example, mine is like this:
Go to c:/upload to see if there is any file you just uploaded. If so, congratulations on registering the component successfully.
http://127.0.0.1/form1.aspWhy is it uploaded to c:/upload? Everyone open UploadScript1.asp, the code is as follows:
<%
Set Upload = Server.CreateObject("Persits.Upload")
'The Upload.Save("c:/upload") here is the save path, Count can successfully upload the number of files
Count = Upload.Save("c:/upload")
Response.Write Count & " file(s) uploaded to c:/upload"
%>
I understand! And one thing to note about Form1.asp:
<HTML>
<BODY BGCOLOR="#FFFFFF">
<h3>Simple Upload</h3>
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="UploadScript1.asp">
<!--The NAME attribute here must be, otherwise it cannot be uploaded. It is recommended to write it according to it->
<INPUT TYPE="FILE" SIZE="40" NAME="FILE1" ><BR>
<INPUT TYPE="FILE" SIZE="40" NAME="FILE2" ><BR>
<INPUT TYPE="FILE" SIZE="40" NAME="FILE3" ><BR>
<INPUT TYPE=SUBMIT VALUE="Upload!">
</FORM>
</BODY>
</HTML>
Open any file to upload, and it appears
1 file(s) uploaded to c:/upload
Congratulations, it's successful!
Next, let’s talk about some attributes of aspupload and give a few representative examples. For the others, please take a look at the attached examples for yourself!
File.Size Unit: bytesFile.Path path