Can't use post for editor ajax with fileupload
Can't use post for editor ajax with fileupload
Hi all
I have a question about fileUpload
Using
editor = new $.fn.dataTable.Editor( { // initialisation de l'editeur
ajax: {
url: "getdata.php",
type: 'POST',
dataType: 'JSON',
data: {
T: 'utilisateurs'
},
},
table: "#donnees",
throw an error when uploading a file
else
editor = new $.fn.dataTable.Editor( {
ajax: {
url: "getdata.php?T=utilisateurs",
dataType: 'JSON',
},
table: "#donnees",
run correctly
Is it "normal" ?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I haven't seen that error before but if you look at the
ajax.data
docs you will see some examples for using it as a function to pass data. Try changing to that and let us know the results.Kevin
Hi @kthorngren
Your OK.
run OK
Thanks
Bob