Php uses http or tcpip to upload large files. it is better to use http to upload files of 2 MB by default in php, if you upload large files such as videos using the same http protocol as uploading small files, or developing an upload client in other languages based on the TCP/IP protocol, please give your advice, thank you!
Reply to discussion (solution)
I don't quite understand how large files are processed during php uploads.
Can I use JS to develop a SOCKET client?
The default value is 2 MB. you can change the size.
Yes, it can be changed to a larger value, but this is not suitable for the general sense.
You can consider this link
By default, php uses the http protocol to upload files of 2 MB, if you upload large files such as videos using the same http protocol as uploading small files, or developing an upload client in other languages based on the TCP/IP protocol, please give your advice, thank you! Use the HTTP protocol. Like uploading large attachments in Youku and QQ mailboxes, Baidu online storage, DBank, 360 online storage, and 115 online storage, they all use the HTTP protocol, but they have opened their own controls to do this. Ordinary HTML cannot be done.
By default, php uses the http protocol to upload files of 2 MB, if you upload large files such as videos using the same http protocol as uploading small files, or developing an upload client in other languages based on the TCP/IP protocol, please give your advice, thank you! Generally, large files are uploaded using special controls based on the HTTP protocol. This provides the best user experience. You can search for a widget like this on the Internet.
By default, php uses the http protocol to upload files of 2 MB, if you upload large files such as videos using the same http protocol as uploading small files, or developing an upload client in other languages based on the TCP/IP protocol, please give your advice, thank you! There is a Web large file Upload breakpoint resume control: http://www.cnblogs.com/xproer/archive/2012/10/26/2741264.html
This control supports resumable Upload of GB files, provides complete development documents, supports MD5 verification of files, and supports batch upload of files.
Supported browsers: Internet Explorer 6, Internet Explorer 7, Internet Explorer 8, and Internet Explorer 9
Maxthon (travel) 1.x, Maxthon (travel) 2.x, ttbrowser, QQ Browser, 360 security browser,
Chrome (Google browser), Maxthon3.x, 360 speed browser 6.x, Firefox
Paste a file to simplify file selection:
File MD5 value calculation progress:
File MD5 value calculated
The server checks whether the same file exists based on MD5.
Resume file transfer
Load the file list from the server
Uploading files
File uploaded
Upload folder
And Discuz! X2 integration-the breakpoint resume control is installed in the background
And Discuz! X2 integration-enable the breakpoint resume control in the background
And Discuz! X2 integration-the background breakpoint resume control is enabled successfully.
And Discuz! X2 integration-frontend posting page
And Discuz! X2 integration-Upload
Sample code for page call:
HTTP breakpoint control and MySQL database demo page (UTF-8)