Summary of methods of uploading large files, single files and multiple files using webuploader plug-in in Java

I Reasons for using the webuploader plug-in

By the current project.

First, let's talk about my project architecture Spring + struts 2 + mybatis + mysql

so what. As previously agreed, it's OK to upload according to 2G. Therefore, the ajaxfileupload plug-in is used. Because this is also used for image upload before, it's used directly when uploading attachments

Various codes and codes have also been tested. There is no problem uploading 2G files. The pit is coming. After the project is launched, the customer requires to upload 4G files, and even more than 20g files.. Nani, you didn't say it earlier...

Under ie11, use ajax fileUpload JS plug-in uploads more than 4G files, and ie directly throws an exception. Pop up the message that the arithmetic result exceeds 32 bits As shown below:

As an additional note, my system is 64 bit, 8g memory, and both Google browser and ie11 browser are 32-bit. There are problems uploading 8g with Ajax file upload under Google. No error will be reported.

It is wrong to directly report the above figure for more than 4G under ie11. no way out. Replace the plug-in.

II Plug in selection

1. Stream upload plug-in. Stream is a plug-in for uploading files from different browsers. It is a combination of the flash version of uploadify and HTML5. Plug in address http://www.twinkling.cn/

Large files are uploaded concurrently in pieces, which greatly improves the efficiency of file upload. Plug in address http://fex.baidu.com/webuploader/ This plug-in can customize CSS styles. The function is also very powerful, so I decided to use this plug-in.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>