AspUpload 3.0 Download and use a collection _ Application tips

Source: Internet
Author: User

Package download (This version is for the crack version only for learning, please do not use for business purposes, extract the password please go to the forum request)

AspUpload is a powerful dynamic server upload components! Install this program, you can upload a variety of documents through the ASP program!
AspUpload can achieve the following functions:
1. Limit the size of uploaded files
2. Set the user's permissions
3. Modify file properties
4. Upload multiple files at the same time
5. Ability to save files to a database

To install the AspUpload 3.0 component today, the default installation path is
C:\Program files\persits Software\aspupload\bin\aspupload.dll
Open the Run window input:
regsvr32 C:\Program files\persits Software\aspupload\bin\aspupload.dll
Note: The format of the registration component is Regsvr32 ***.dll

But it jumps out


I'm guessing it's a path problem, because there's a space in the program Files ? I copy the Aspupload.dll to the c:\window\system32\ and re-register

regsvr32 aspupload.dll

The result is successful!

Use article

How can we explain the success of our registration?
It comes with example 1 that can help us solve this problem, in 02_simple this folder has form1.asp and uploadscript1.asp These two files, put them in the virtual directory, such as mine is like this:

Go to c:/upload and see if there are any files you just uploaded. If you have, congratulations. Registering the component succeeded.

Http://127.0.0.1/form1.asp

Why did it spread to the c:/upload? Everyone open uploadscript1.asp, the code is as follows:

<%
Set Upload = Server.CreateObject ("Persits.upload")
' Here's the Upload.Save ("C:\Upload") is the save path where count can get a successful number of files uploaded
Count = upload.save(" c:\upload")
Response.Write Count & "file (s) uploaded to C:\Upload"
%>

Get It! And for Form1.asp also need to pay attention to a point:

<HTML>
<body bgcolor= "#FFFFFF" >
<form method= "POST" enctype= "Multipart/form-data" action= "uploadscript1.asp" >
<!--the name attribute must be available here, otherwise it cannot be uploaded, it is recommended to write-->
<input type= "FILE" size= "name=" " FILE1 " ><BR>
<input type= "FILE" size= "name=" " FILE2 " ><BR>
<input type= "FILE" size= "name=" " FILE3 " ><BR>
<input type=submit value= "upload!" >
</FORM>
</BODY>
</HTML>

Open casually upload a file that appears

1 file (s) uploaded to C:\Upload

Congratulations, it's done!

Next we'll talk about some of the attributes of AspUpload, and take a few representative examples, others to look at the accompanying examples!

File.size Unit:bytes
File.path Path
File.filename file name
File.md5hash
add: As an example, check whether this file already exists using MD5 hash, which means checking whether a file exists, is an option.

Text description and file upload and display, examples form2.asp (from band) and uploadscript2.asp :

The uploadscript2.asp code is as follows:

<HTML>
<BODY>
<%
Set Upload = Server.CreateObject ("Persits.upload")
Upload.Save "C:\Upload"
%>
Files:<br>
<%
For each File in Upload.files
Response.Write File.name & "= & File.path &" ("& File.size &" bytes) <BR> "
Next
%>
<P>
Other items:<br>
<%
For each Item in Upload.form
Response.Write Item.name & "=" & Item.value & "<BR>"
Next
%>
</BODY>
</HTML>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.