Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anybody with experience in Andrew Valums Ajax Upload (qq.FileUploaderBasic) script?

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.

like image 256
Igor Parra Avatar asked Dec 13 '25 01:12

Igor Parra


1 Answers

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).

like image 170
Julian D. Avatar answered Dec 15 '25 07:12

Julian D.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!