It looks like you're new here. If you want to get involved, click one of these buttons!
var iddoc = $("#TextBoxHidden").val();
var auteur = $("#TextBoxContactAuteur").val();
$("#fileUpload").fileUpload(
{
'buttonText': 'Parcourir',
'uploader': '../../../modules/quitodocsdev/uploadify/uploader.swf', //image browse format ShockWave Flash
'cancelImg': '../../../modules/quitodocsdev/uploadify/cancel.png', //image supprimer telechargement en cours
'script': '../../../modules/quitodocsdev/uploadify/upload.php', // traitement upload fichier
'folder': '../../../modules/quitodocsdev/files',
'sizeLimit' : '1073741824',
'multi': false,
// 'onComplete' : function(event, ID, fileObj, response, data) {alert('There are ' + data.fileCount + ' files remaining in the queue.');},
'scriptData' : {'iddoc': iddoc,'auteur':auteur }, // pour passer champ caché du formulaire dans index.php
'displayData' : 'percentage',
onError: function (a, b, c, d) {
if (d.status == 404)
alert('Could not find upload script. Use a path relative to: '+'<?= getcwd() ?>');
else if (d.type === "HTTP")
alert('error '+d.type+": "+d.status);
else if (d.type ==="File Size")
alert(c.name+' '+d.type+' Limit: '+Math.round(d.sizeLimit/1024)+'KB');
else
alert('error '+d.type+": "+d.text);
},
'onAllComplete' : function(event,data) {
//alert(' files uploaded successfully!');
$("#TextBoxContactTitre").text("lo");
}
}
);