jquery Upload plugin fineuploader upload file use method (jquery image upload plugin) _jquery

Source: Internet
Author: User

Characteristics:

1. Not dependent with jquery

2. And, look better. Support many instances, after uploading successfully. There will be a callback function. such as thumbnail address display


Usage:

Copy Code code as follows:

<link href= "Http://fineuploader.com/source/fineuploader-3.9.1.min.css" rel= "stylesheet"/>
<script src= "Http://fineuploader.com/source/fineuploader-3.9.1.min.js" ></script>

Copy Code code as follows:

var thumbnailuploader = new QQ. Fineuploader ({
Element: $ (' #thumbnail-fine-uploader ') [0],
Request: {
Endpoint: ' Uploadimg '
},
Validation: {
Allowedextensions: [' jpeg ', ' jpg ', ' gif ', ' PNG ']
},
Callbacks: {
Oncomplete:function (ID, fileName, Responsejson) {
if (responsejson.success) {
alert (RESPONSEJSON.GUIDIMG);
$ (' #logo '). Val (responsejson.guidimg);
$ (' #thumbnail-fine-uploader '). Append (' ");
}
}
}
});

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.