Upload large files web solutions

To upload large files more than 4GB and HTTP server

With the popularity of video sites and large data applications, in particular, the arrival of high-definition video and 4K video applications, large file uploads has become a daily basis applications.

But in many cases, platform operators and no large file uploads HTTP and development experience, often find some simple PHP or Java program to achieve basic online upload feature, however, you will find that in actual use, these based upload function module performance is weak scripting language, one does not support more than 2GB uploading content; the second is unable to support HTTP; three is extremely inefficient, single server supports up to dozens of concurrent upload connections.

Currently we are building a carrier-class video services platform, try a variety of products are unable to meet the requirements, so the final spend energy independent in C ++ to achieve this high performance server upload. 

project address:

http://git://10.168.4.241/up6/web/asp.net.git

Hyper Upload Server super server to upload 

This is a super file upload server, using asynchronous I / O architecture, using C ++ coding language to achieve. It supports more than 4GB large file uploads and HTTP, Windows and Linux server platform that supports any file format to upload, especially for large video site applications. A single server to support 1000 concurrent upload process and supports PC and the smartphone end of the mainstream browsers. 

Key Features

1. The server uses asynchronous I / O set up design, high performance I / O processing capabilities, especially for large file upload;

2. The server uses to ensure efficient memory allocation technique to minimize the memory overhead of the server during operation;

3. Fully standard protocol, and therefore compatible with almost all PC and the mobile terminal browser;

4. The server uses C ++ language self-realization, unlimited file size for upload, naturally support large file uploads.

   The service-based file upload PHP, JAVA and other technology to achieve natural can not support large file upload, insurmountable bottleneck maximum file size of 2GB;

The server uses unbuffered immediate write mode, data is written to upload one step. Unlike PHP, JAVA technology to achieve a two-step approach requires writing;

6. The server can be compiled to run cross-platform, supporting both Windows and Linux platforms;

7. The high-performance, single server to support 1000 concurrent upload process;

8. A support more than 4GB upload large files, the file size is unlimited;

9. The client supports the use of standard HTTP protocol to upload;

10. Support for HTTP, disconnection, power cycle are unaffected;

11. Supports HTML5 browser upload progress in real-time display;

12. Support IE8 and older browsers display upload progress;

13. Support view the client online connection, see Methods: http: // ip: port / lists

14. The multi-browser compatible, including Chrome, Firefox, Safari, IE, Opera, Edge; 

installation 

The first step: extract the files to a hard disk directory, such as d: \ UploadServer 

Step two: modify the configuration file

         Modify d: \ UploadServer \ conf \ config.xml, the file directory settings,

         All dir = variable points to the directory modification to the real directory on your hard, if not created by the configuration file;       

Step 3: Install Service

      Execute cmd to open a command line window by step enter the following command:

      d:  <br/>

      cd UploadServer

      HYFileServer.exe -i  

Step Four: Start Services

    Open the Service Manager system, find Hyper Http Upload Service service to start it.

Step Five: Enter http://127.0.0.1:8080 in the browser to view the server is operating properly

    Upload displayed correctly if the installation is successful

    Clicking on a link button to upload the file to upload a file.

    If you want to access the server upload pages on other hosts, set to replace 127.0.0.1 with the IP address of the server installation.

    If you still can not access an external machine, please check the firewall settings, look at the default 8080 port is open.

     

Step Six: If you want to learn more about upload server, please see the d: \ UploadServer \ doc \ file upload server manual .pdf file.

- perform the installation under Linux

./hyupdsrv

If you want to as a daemon, execute

./hyupdsrv -d 

Detailed configuration can refer to the article I wrote: http://blog.ncmem.com/wordpress/2019/08/09/%e5%be%80%e6%9c%8d%e5%8a%a1%e5% 99% a8% e4% b8% 8a% e4% bc% a0% e5% a4% a7% e6% 96% 87% e4% bb% b6 /

Guess you like

Origin www.cnblogs.com/songsu/p/11506018.html