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 (' ");
}
}
}
});