Using asp.net to design ftp file upload (top)

Source: Internet
Author: User
Tags file upload ftp ftp file
If you want to use ASP to make an FTP file upload page, I think many people immediately think of the use of third-party development of components, the use of Third-party components, although relatively easy to develop. But in general, the free download of third-party components have certain aspects of the functional limitations, to purchase genuine Third-party components, for domestic users, the cost is also a large number, is able to bear, tumultuous procedures also make many people deterred. Although Microsoft also provides a component--posting acceptor that can be used to upload files in its own Windows system. But friends who have used this component have a common feeling that it's not working.

Well now, since Microsoft launched the. NET Framework, the ASP.net, which is an important part of the. NET Framework, has built a file upload function internally, and this feature is both free and quite useful. Here's an example of how you can use the ASP.net feature to complete file uploads.

A Software Authoring and operating environment

Microsoft Windows 2000 Professional Edition and the. Net FrameWork SDK BETA2 (developed by Microsoft. NET developed software development package test version 2). If the hard disk partition of the server that is running is the NTSF partition, set the Access property of all the hard disks on the server to everyone, which ensures that the uploaded files are correctly written to the server's hard disk.

Two The basic function of software

This software mainly completes the function of uploading local files to the server's specified directory. In the software's running interface, after the user chooses to upload the file name, fill in the directory to upload to the server after the name, if not filled up to the server directory, then use the default directory "C:\ , this directory is established if the directory you are filling does not exist on the server. After pressing the "Start upload" button, the software uploads the selected file to the specified directory, and then returns the information for the uploaded file, which is the name of the file, the size of the file, and the type of file. The specific operating interface of the software and the running result interface are shown in the following illustration:

Figure 1: The operating interface of the software

Figure 2: The software's running results interface

Related Article

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.