Mupload Quick Start

Source: Internet
Author: User
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:

    1. Supports uploading large files and up to GB of Files
    2. 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;
    3. Extensive front-end compatibility. tested, it is compatible with mainstream browsers such as IE, Firefox, and chrome;
    4. Developers can customize many parameters provided by components.
    5. 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 ¶
  • Download and decompress the mjc-mupload-1.1.zip File
  • Go to the MJC-mupload directory on the console and enter the following command (ensure that maven2 is installed on the local machine ):
         # The following command only needs to be executed once on the machine, install the mupload dependency to the maven local repository   Cd SRC   /  main   /  resources   /  lib   . /  install_lib_to_maven2   .   bat    # package mupload   Cd    http://www.cnblogs.com ..   MVN clean install  

    After the execution is complete, the signed JAR package will be obtained under the target/signed Directory, which is a usable jar package.

  • Copy the jar package under the target/singed directory and src/main/resources/JS/mjc-mupload-1.1.js to the release directory of your application.
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:

    1. Go to the src/main/resources/sign directory through the console;
    2. 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.
    3. 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:

    1. Download and decompress the mjc-mupload-example-1.1.zip File
    2. 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;
    3. Run the following command to package the package in the directory of the compressed package: MVN clean install
    4. 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
    5. 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:

    1. 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)
    2. 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!
    3. On the page for file upload, call the HTML file in step 1 to open the upload interface and upload the file.

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.