Looking at the docs I'm trying to send some value along with the image. Not sure if I have the params: in the correct location. Having trouble and not sure if it client or server side.
<script>
$(document).ready(function(){
var thumbnailuploader = new qq.FineUploader({
element: $('#thumbnail-fine-uploader')[0],
request: {
endpoint: 'image-uploader.cfc?method=Upload'
},
params: {
foo: {
one: 'bar',
two: 'bar2'
}
},
multiple: true,
validation: {
allowedExtensions: ['jpeg', 'jpg', 'gif', 'png'],
sizeLimit: 102400 // 100 kB = 100 * 1024 bytes
},
text: {
uploadButton: "\+ Click or Drop"
},
callbacks: {
onComplete: function(id, fileName, responseJSON)
{
if (responseJSON.success) {
$('#thumbnail-fine-uploader').append('<img src="/Test/file2/files/' + responseJSON.filename +'" alt="' + fileName + '" style="width:150px;height:150px;">');
$('#thumbnail-fine-uploader').append('<b style="color:red;">' + responseJSON.foone +'</b>');
}
}
}
})
});
</script>