When the user needs to transfer files to the server, the common method is to use FTP mode. Although the FTP is transmitted stable, security is a serious problem, and the FTP server reads the user library acquisition permission, which is not the user Too convenient. If we can integrate the file upload function with the web, users can use only a web browser to complete the upload task, which will be very convenient for them.
There are many ways to introduce the ASP upload file on the Internet, and there are three major categories of implementation methods, and readers can choose the appropriate way according to their conditions and needs.
First, the server component is uploaded:
The method is represented by SA-Fileup components, ASPUPLOAD components, and LYFUPLOAD components.
SA-Fileup, Software Artisans is one of the earliest commercial Active Server components, and has been improved now, and now exists as a purely ASP component. Persits Software's AspupLoad is also a very powerful COM component. They all achieve the functions required for various files: upload large files, limit the size of the upload file, upload multiple files, display upload progress bar, save files to the database, ....
The advantage of this type of method is that there is no need to run stable, powerful, and there is no requirement for your browser. The disadvantage is to register components on the server. If the website administrator has administrative permissions to the server, the method should be the first choice for implementing the file.
Second, no components are uploaded:
This method is uploaded in the absence of the border, no fear without component upload, pioneer without component uploading, etc.
This method is the most widely widely used method on the network, and there are many source code for the application instance. Its advantage is that there is no requirement for the server and browsers, the adaptability, wide application range. But it also has a disadvantage that there is no progress bar when loading files, and IIS default restrictions do not allow uploading more than 200KB files (unless you modify the default settings of IIS ASPMAXREQUESTENTINALLOWED).
If you only need to upload a small file, it should be the preferred solution. If you need to load large files, you need to modify the default settings of IIS aspmaxrequestentityAllowed.
Third, the browser component is uploaded:
The method is represented by the XUPLOAD component, the xuploadFiles component, and the vertical and horizontal HTTP file.
This method is relatively less on the network. Its advantage is that there is no requirement for the server, no need to install the components on the server, and can provide the various functions required to upload the file: upload large files, limit the size of the upload file, upload Multiple files, display upload progress bar, .... Its shortcomings are also more obvious, requiring the browser component (on the client). This method is suitable for the need to upload big files, while website administrators do not manage privileges for servers (such as virtual hosts, lease space, etc.).
Various upload methods lateral comparison Results:
Server requires a browser to request upload files to limit the progress of other SA-Fileup
Installing components
-
Support big files, unrestricted
Progress bar
Need to have server control
Aspupload
Installing components
-
Support big files, unrestricted
Progress bar
Need to have server control
Lyfupload
Installing components
-
Support big files, unrestricted
no
Need to have server control
Unbelred part of the situation
-
-
Related to IIS settings,
IIS default settings up to 200KB
no
Generally
Applicable small file upload
No fearless upload
-
-
Related to IIS settings,
IIS default settings up to 200KB
no
Generally
Applicable small file upload
Pioneer without component upload
-
-
Related to IIS settings,
IIS default settings up to 200KB
no
Generally
Applicable small file upload
Xuploadfiles
-
Installing components
Support big files, unrestricted
Progress bar
Rent space,
Need to upload big files
Upload assembly
-
Installing components
Support big files, unrestricted
Progress bar
Rent space,
Need to upload big files