Description Bytes ¶
Mupload is a big File Upload Component built using Java Applet technology based on the standard HTTP protocol. The features of mupload are:
- Supports uploading large files and up to GB of Files
- Server independence. Because the standard HTTP protocol is used for file transmission, any language that supports the HTTP protocol can be used as the server;
- Extensive front-end compatibility. tested, it is compatible with mainstream browsers such as IE, Firefox, and chrome;
- Developers can customize many parameters provided by components.
- The user experience is good. The component upload will display the progress, upload speed, remaining time, and other basic information.
Quick Application Bytes ¶ Package and deploy source code Bytes ¶
Set Signature Bytes ¶
The component has a signature store file by default. In the src/main/resources/sign directory, the default password is mupload. If you want to provide your own signature information, follow these steps:
- Go to the src/main/resources/sign directory through the console;
- InputKeytool-genkey-keystore mjc-mupload.store-alias muploadGenerate the store file. Set the password to mupload. If not, change the signature password in the POM file to your password.
- After the signature information is generated, you can use your signature information after packaging with Maven.
Sample Application Bytes ¶
The component also provides an exampleProgramFor your use and learning, follow these steps:
- Download and decompress the mjc-mupload-example-1.1.zip File
- The instance program already contains the latest mupload package and JS files in the src/main/webapp/mupload directory (mjc-mupload-1.1.jar and mjc-mupload-1.1.js); if you want to use your own package of mupload files, overwrite the jar package in this directory;
- Run the following command to package the package in the directory of the compressed package: MVN clean install
- After running, the system generates a mjc-mupload-example-1.1.war file under the target directory, copy this file to Tomcat webapps to complete the deployment
- Start Tomcat and enter the following in the browser:Http: // localhost: 8080/mjc-mupload-example-1.1 for access
How to apply it to your own applications Bytes ¶
The process of applying mupload to your system is the same as that in the example. You can refer to the sample program as follows:
- Copy the mjc-mupload-1.1.jar and mupload-1.1.js files generated in the preceding package to a directory in your system (this directory should be accessible through HTTP)
- Write the mupload.html file in the example program under this Directory, which mainly contains the mupload-1.1.js file, used to create the UI interface and execute file upload, parameters please refer to the introduction of the Project homepage!
- On the page for file upload, call the HTML file in step 1 to open the upload interface and upload the file.