Home  >  Article  >  Web Front-end  >  How to use the jquery upload plug-in fineuploader to upload files (jquery image upload plug-in)_jquery

How to use the jquery upload plug-in fineuploader to upload files (jquery image upload plug-in)_jquery

WBOY
WBOYOriginal
2016-05-16 17:10:361240browse

Features:

1. Does not depend on jquery

2. Moreover, it looks better. It supports many instances. After the upload is successful, there will be a callback function. For example, the thumbnail address is displayed


Usage:

Copy code The code is as follows:



Copy code The code is as follows:

var thumbnailuploader = new qq.FineUploader({
element: $('#thumbnail-fine-uploader')[0],
          request: {
                                                                                                           allowedExtensions: ['jpeg ', 'jpg', 'gif', 'png']
},
callbacks: {
onComplete: function (id, fileName, responseJSON) {
if (responseJSON.success) {                                                              >          }
       });
 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn