I am trying to implement the Fineuploader component. ( fineuploader.com)
I imported the fine-uploader.js file that contains the following initial lines:
// Fine Uploader 5.14.3 - (c) 2013-present Widen Enterprises, Inc. MIT licensed. http://fineuploader.com
(function(global) {
var qq = function(element) {...
and I am initiating the fineuploader using the following javascript code in the Page Load event:
var uploader = new qq.FineUploader({
element: document.getElementById("Upload_uploader")
})
Code: Select all
var uploader = new qq.FineUploader({
debug: true,
element: document.getElementById('Upload_uploader'),
request: {
endpoint: '/uploads'
},
deleteFile: {
enabled: true,
endpoint: '/uploads'
},
retry: {
enableAuto: true
}
});
But, I am getting the following error message on console:
ReferenceError: Can't find variable: qq
the line var uploader = new qq.FineUploader initiates the FileUploader, but it I think it is not seeing qq variable in the fine-uploader.js.
Any idea?