Ask for the aspupload instance

Updated on technology 2024-02-08
1 answers
  1. Anonymous users2024-02-05

    Hello, try the following methods: 1. Abstract asp component has built-in, included with server installation, and more is provided by a third party, today to learn how to use one of the components of file upload aspupload component.

    2) Double-click directly to install.

    a.Limit the size of uploaded files.

    b.Set the user's permissions.

    c.Modify file properties.

    d.Upload multiple files at the same time.

    e.Ability to save files to a database.

    f.File deletion is supported, and files with different names from the files on the server are automatically generated.

    g.Users with administrative privileges can even use the control to register remotely.

    3. Simple application of the aspupload component Li Chai.

    1. Example 1 (: Realize the upload function of three files through **.

    As shown in the figure below:

    1) Static page: 1 form, 3 file fields, 1 button, where the action of the form form is as follows. (2) Among them, the client file should pay attention to several points:

    The enctype of the file upload submission form must be specified as "multipart form-data".

    The statement represents the upload file field in which the user can enter or select a file.

    Pass a parameter act (the name can be your own), and its value can be set arbitrarily, the purpose of which is to trigger the upload event.

    3) Dynamics** are as follows:

    2. Example 2 (: Modify the program to display the file name and size of the uploaded file after uploading the file.

    Add as follows**:"Document 1 is:

    Document 2 is: Document 3 is:

    3. Example 3 (: Modify the program, the size of the three files required to be uploaded cannot exceed 5k, and if the uploaded file already exists, it is required not to cover the file.

    Add the following before uploading:

    5120,false

    Description: 1) 5120,false The function is to set the maximum file to 5120 bytes, the false parameter indicates that when the file exceeds 5120 bytes, the excess part will be deleted, and the true parameter indicates that when the file exceeds 5120 bytes, the error will occur.

    2), its function means that the file is not overwritten, if you upload a file with the same file name, the file name will automatically add a number after uploading.

    4. Self-study the second component of uploading a file.

    2. Learn the installation or registration of this component.

    3. Upload files through textbook examples.

    5. Problem 1: The following error occurs when the server is running to the school, and it fails.

    Reason for analysis: The school server does not support the aspupload upload component.

    2. If the server does not support upload components such as aspupload, please use the upload function without components (writing**), see p322 in the book, this kind of ** is more complicated, students can use it, no need to write it yourself.

    3. When you apply for personal space online, you should see which components the server supports, which is conducive to writing.

Related questions
8 answers2024-02-08

October to November 2010 is an auspicious day for you to move >>>More

9 answers2024-02-08

Is it a black car, remote-controlled, with a red light flashing back and forth on the front bumper? I want to know.

9 answers2024-02-08

Korean Seven Princesses: Love Song, sad love song, you are the most precious. >>>More

11 answers2024-02-08

In fact, this is the case, the probability of joining and meeting a pig teammate is 30% The probability that none of the 4 teammates is a pig is (power = >>>More

24 answers2024-02-08

Ten years of life and death, Hengyuanxiang, sheep and sheep. Thousands of miles of lonely graves, laundry detergent with strange strength. Even if you don't know each other, supplement vitamin C, Shierkang. >>>More