c How to get files that can t upload more than 40kb

Updated on technology 2024-06-10
11 answers
  1. Anonymous users2024-02-11

    If it fails, the return address is returned.

    public static string getip()

    If the client uses the **server, use http x forwarded for to find the client's IP address.

    string userhostaddress = "http_x_forwarded_for"].tostring().split(',')[0].trim();

    Otherwise, read the remote addr to obtain the client IP address.

    if (userhostaddress = "remote_addr"];

    If the first two fail, the IP address is obtained by using the attributes, but it is not possible to determine whether the IP is a client IP or a **IP at this time

    if (userhostaddress = ;

    Finally, determine whether the acquisition is successful or not, and check the format of the IP address (it is very important to check its format).

    return userhostaddress;

    return "";

    Check the IP address format.

    public static bool isip(string ip)

    return , "^((2[0-4]\d|25[0-5]|[01]?\d\d?)\2[0-4]\d|25[0-5]|[01]?\d\d?)$");

  2. Anonymous users2024-02-10

    Consider a single file upload first, and make a single file upload clear, batch upload is nothing more than an outer loop added to the function of a single file upload.

  3. Anonymous users2024-02-09

    With server controls, the interaction is not very good.

    Using js+ajax, you can achieve a good experience.

  4. Anonymous users2024-02-08

    。。Use the upload control or use js to get the path to the file backend to handle the upload.

  5. Anonymous users2024-02-07

    Just use a ** and then dynamically change the width of the ** in the file upload event. lz decisively give points... You a** post it.。。。

  6. Anonymous users2024-02-06

    Estimate the time, and then make a fake one.

  7. Anonymous users2024-02-05

    FTP files require an FTP user and password, and are uploaded using the FTP protocol.

    WCF can be uploaded using FTP and HTTP protocols, the key is how you implement it, WCF is just a data communication framework.

    httpwebclient uses the http protocol and can do many things, including uploading files.

    In contrast, the FTP protocol is faster to upload files, but it requires an FTP server and maintains an FTP username and password.

    I don't know what requirements the system you want to develop has, the general management system can meet the requirements by uploading files using the HTTP protocol.

  8. Anonymous users2024-02-04

    It may be that there is no limit to modify the size of the uploaded file in your configuration file, the default is 4m, and the larger point you want to change should be OK.

  9. Anonymous users2024-02-03

    It is best not to exceed 4M for general uploading, and if you need to upload large items, you can find a super-large file upload component on the Internet.

  10. Anonymous users2024-02-02

    Find a c uncomponent upload class, with demo and then modify it.

  11. Anonymous users2024-02-01

    string type = ".") +1);The type of the extracted file random rd = new random(); Generate random number int valationno = 10 + generate random number string changemath = ; Generate a random number string uploadfiletime ="yyyymmddhhmmss") +changemath;Get the system time and add a random number to generate the upload **name string filename = uploadfiletime +"." + type;The name of the uploaded file is generated.

Related questions
16 answers2024-06-10

Tell me the version number of the MT880.

First of all, please find the reset button on the rear panel of the MT880, press and hold this button for 3 seconds to restore the device to factory default settings. >>>More

17 answers2024-06-10

Hello. 1. Log in.

Users can log in directly to the library, if they don't have an ID, they can register an account first, and they only need to have a verified email address to become a user. >>>More

12 answers2024-06-10

If you upload a file, if your file is not original, or if you have already had this file, then it doesn't take much time to upload. Basically, it is within 5 seconds, which is the so-called second pass. >>>More

5 answers2024-06-10

If you use UC, you don't know that the web browser you want to open is not supported, and Opera is the same, if the browser does not support the type of web page, it will also not be able to open. There is also a way to set up the network link there, if you are a mobile card, choose Monternet CMCC.

12 answers2024-06-10

1) B=40°, C=80° A 60°AE Bisect BAC BAE 30° DEA EBA BAE 40° 30° 70° ADE 90° >>>More