There are 2 versions:
var uploader = new qq.FileUploaderBasic(); // not working
var uploader = new qq.FileUploader();
It is suppose that the basic version FileUploaderBasic only gives a button and validate the uploaded file. I only wants that. But I do not even get the button.
This is a terrific and beautiful ajax based file uploader. But there are no reference to this issue and I am tried all. This is the second time that I use it but the first time I used the FileUploader version that worked great.
ref: Ajax Upload; A file upload script with progress-bar, drag-and-drop.
Apparently the two classes differ in their required options: for setting up a FileUploaderBasic you will need to provide a button option whereas for FileUploader you have to specify an element:
var uploaderBasic = new qq.FileUploaderBasic({
button: document.getElementById('file-uploader-basic')
});
var uploader = new qq.FileUploader({
element: document.getElementById('file-uploader')
});
FileUploaderBasic also doesn't seem to apply the default button styles and content, you have to set them up by yourself (if needed):
<div id="file-uploader-basic" class="qq-upload-button">Upload</div>
You can look at a working version at this JSBin (JSFiddle was down at the time of this post).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With