Upload Large File Client

Source: Internet
Author: User
Tags php sample code jquery file upload
Want to ask, what do you use to achieve file upload? Need a Web client, can upload large files, if it is FTP or other protocols need to be able to notify the HTTP server end after upload, or at least server side can have prepost events
If HTTP uploads need to be able to support chunk, hopefully a solution for HTML5 or Flash, do not Java applets or JavaFX
Don't even pay for the expensive things like aspera.
The main thing is to be able to upload large files, large files refers to the maximum up to 100G files,

Server side If you can have PHP script the best
I've tried jquery file upload and plupload.


Reply to discussion (solution)

Recommended for use with flash+php, with third-party class libraries

Recommended for use with flash+php, with third-party class libraries

Can specific point, flash client called What?

Php+flash Multi-file asynchronous upload
Third-party class library swfupload you can refer to it for a moment.

It is recommended to use flash+php, which has a third-party class library to set the size of the uploaded file.

Upload size limit is configured php.ini Wow

Want to ask, what do you use to achieve file upload? Need a Web client, can upload large files, if it is FTP or other protocols need to be able to notify the HTTP server end after upload, or at least server side can have prepost events
If HTTP uploads need to be able to support chunk, hopefully a solution for HTML5 or Flash, do not Java applets or JavaFX
Don't even pay for the expensive things like aspera.
The main thing is to be able to ... Flash control is unable to upload 100G files, not to mention 100G, 100MB is not. Because the current online free flash control does not support the breakpoint upload function. And there is no MD5 scanning function.

Want to ask, what do you use to achieve file upload? Need a Web client, can upload large files, if it is FTP or other protocols need to be able to notify the HTTP server end after upload, or at least server side can have prepost events
If HTTP uploads need to be able to support chunk, hopefully a solution for HTML5 or Flash, do not Java applets or JavaFX
Don't even pay for the expensive things like aspera.
The main thing is to be able to ... The traditional HTML method has been difficult to meet the large file upload. Don't say it is 100MB,50MB to the server is very large, service not only to open a socket connection has been waiting for this file upload completed, but also to allocate the same size of memory to save the file on the server caused by the pressure is quite large, And the pressure will increase with the increase of the user geometry. Even if it is not with Flash, because the current flash does not support the continuation of the breakpoint operation, also does not support file block operation, Flash and the traditional way of HTML upload principle. Upload 100MB images with flash, and the server will allocate 100MB of memory. 10 users upload 100MB data at the same time, will eat server 1G of memory.
Flash upload is the entire file is truncated into memory, this is a serious problem. Because if the user is uploading 5G files, Flash will load all 5G files into memory. This can seriously affect the user's operational experience. Because then the user's computer will be in suspended animation state. The average user's computer is also 2G, so hang up directly, out of memory, or memory overflow.

Some friends have tried to upload large files with the Flash file upload control, but often encounter upload time-outs, or upload errors. This is because the Flash file upload control now uses the same technology as the traditional HTML upload. Let the server open a connection and wait until the client has finished sending the file. However, in the actual network environment, the user's speed may be only 50kb/s, uploading 200MB files may take 2.8 hours. However, the server session connection is not possible for the user for 2.8 hours, this does not consider the complex network environment, such as packet loss situation. If you encounter packet loss and network anomalies, the 100MB file in front of the user is white. This equates to a waste of one hours of user time. Bring a very poor experience to the user.
For the server, the connection resource is very limited, even if the server can be a user for 2.8 hours, if the user access a large, each user occupied a connection and take so long, then the server's concurrency processing power is very low. Other users are asked to request a simple 1KB HTML page and must wait for the server to finish processing the previous user's request.

At the same time Flash can not meet the large file upload requirements. Because of the large file upload requirements have a requirement is to ensure the stability of data transmission. For example, the user uploads 1G files, has uploaded 500MB, then the network suddenly broke, but the user hope that the next time the file is uploaded from the location of the last upload to start the transmission, that is, from the location of the 500MB to start transmission, this demand is flash can not do.

Like QQ mailbox in the super-large attachment upload function, 115 network disk in the large attachment upload control, Huawei Network Disk (Dbank), Jinshan fast disk they are all using the control to achieve large file upload function. This is done primarily to reduce server stress (faster server response times and more concurrent processing), saving server memory (the server does not have to allocate the same size of memory to each user) while improving the user experience (users can upload oversized files in a complex network environment).

Of course, from a technical point of view, such as these internet-well-known enterprises are also considered to support the massive users of distributed file storage architecture design. Because their file storage servers cannot be one, they will dynamically increase as the number of users increases.

If it is true that some friends say that the flash control can solve the problem of large file upload, then Tencent will not spend so much effort to develop a control for the QQ mailbox specifically.

want to ask, what do you use to achieve file upload? Need Web client, can large file upload, if it is FTP or other protocol need to be able to notify the HTTP server end after uploading, or at least server side can have prepost events
if HTTP upload needs to be able to support chunk, Hope is HTML5 or flash solution, do not Java applet or JavaFX
is paid to do not like aspera that expensive things
the main thing is to ... There is a Web file upload breakpoint extension on the Internet: http://www.cnblogs.com/xproer/archive/2012/10/26/2741264.html
This control supports the continuation of a breakpoint on a 100G file, Provide complete development documentation, support file MD5 verification, support file batch upload.
Browser support: Internet Explorer 6,internet Explorer 7,internet Explorer 8,internet Explorer 9
Maxthon (roaming) 1.x,maxthon (roaming 2.x,tt Browser, QQ browser, 360 Security browser,
Chrome (Google browser), maxthon3.x,360 browser 6.x,firefox
paste files, simplify the selection of file operations:

File MD5 value calculation progress:

File MD5 value is calculated

Server detects the existence of the same file based on MD5

Continue file

Load file list from server

file crosses

file upload complete

Upload folder

and discuz! X2 Integration-Background installation breakpoint continuation control

and discuz! X2 Integration-Background Enable breakpoint continuation control

and discuz! X2 Integration-Background breakpoint continuation control enabled successfully

and discuz! X2 Integration-Front desk Posting page

and discuz! X2 Integration-Upload


page Invoke sample code:

 
      HTTP breakpoint continuation control and MySQL database Demo page (UTF-8)    
 
                      

Resources Download:
CAB installation package
CRX installation Package
XPI installation Package
EXE installation package
Development documentation
Upgrade Log
The ASP. NET (C #) sample code:
asp.net-access Example
asp.net-sql2005 Example
JSP Sample code:
jsp-access-gb2312 Example
Jsp-access-utf8 Example
Jsp-sqlserver2005-utf8 Example
Jsp-mysql-utf8 Example
PHP Sample code:
Php-mysql-utf8 Example
Chrome,firefox,ie Breakpoint Continuation Control Example (the following example has integrated the plug-in for the Ie32,ie64,firefox,chrome platform)
asp.net-access Example
asp.net-sql2005 Example
JSP Sample code:
jsp-access-gb2312 Example
Jsp-access-utf8 Example
Jsp-sqlserver2005-utf8 Example
Jsp-mysql-utf8 Example
PHP Sample code:
Php-mysql-utf8 Example

Chrome,firefox,ie Breakpoint Continuation Control Example (the following example has integrated IE (x86), IE (x64), Firefox,chrome Platform plug-in)
asp.net-access Example
asp.net-sql2005 Example
jsp-access-gb2312 Example
Jsp-access-utf8 Example
Jsp-sql2005-utf8 Example
Jsp-mysql-utf8 Example
Php-mysql-utf8 Example

Xproer.httpuploader5:http://www.cnblogs.com/xproer/archive/2012/10/26/2741264.html
This control supports 100G file's breakpoint continuation operation, provides complete development documentation, supports file MD5 verification, and supports file bulk upload.
Browser support: Internet Explorer 6,internet Explorer 7,internet Explorer 8,internet Explorer 9
Maxthon (roaming) 1.x,maxthon (roaming) 2.x,tt browser, QQ browser, 360 secure browser,
Chrome (Google browser), maxthon3.x,360 Speed browser 6.x,firefox

The page invokes the sample code:

 
      HTTP breakpoint continuation control and MySQL database Demo page (UTF-8)    
 
                      

Resources Download:
CAB installation package
CRX installation Package
XPI installation Package
EXE installation package
Development documentation
Upgrade Log
The ASP. NET (C #) sample code:
asp.net-access Example
asp.net-sql2005 Example
JSP Sample code:
jsp-access-gb2312 Example
Jsp-access-utf8 Example
Jsp-sqlserver2005-utf8 Example
Jsp-mysql-utf8 Example
PHP Sample code:
Php-mysql-utf8 Example
Chrome,firefox,ie Breakpoint Continuation Control Example (the following example has integrated the plug-in for the Ie32,ie64,firefox,chrome platform)
asp.net-access Example
asp.net-sql2005 Example
JSP Sample code:
jsp-access-gb2312 Example
Jsp-access-utf8 Example
Jsp-sqlserver2005-utf8 Example
Jsp-mysql-utf8 Example
PHP Sample code:
Php-mysql-utf8 Example

Chrome,firefox,ie Breakpoint Continuation Control Example (the following example has integrated IE (x86), IE (x64), Firefox,chrome Platform plug-in)
asp.net-access Example
asp.net-sql2005 Example
jsp-access-gb2312 Example
Jsp-access-utf8 Example
Jsp-sql2005-utf8 Example
Jsp-mysql-utf8 Example
Php-mysql-utf8 Example
Good, this user experience is good, and QQ mailbox inside the big attachment upload function same.

Flash upload large files not. Uploading files around 10MB is still a plus.

Collection!!!!!!!!!!!!!!!!!!!!!!!

What are those upstairs? If not thank you, but this control still forget, this price we might as well add money to buy aspera, he also provides various browser plug-in

Now you can consider using HTML5-based chunk upload, but the mainstream browser (chrome and FF) seems to be the size of File.slice objects, I see fine uploader official note is the maximum 4G, that is, 100G what is not realistic , do not want to use the control of this is probably the bottleneck, I found only fine uploader and plupload support cutting files and then upload, but the specific effect how also to be tested, also, both are charged.

  • 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.