1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| // Taille Image à Envoyer : 455211
Ext.Ajax.request({
url:URL,
method: 'POST',
writer: {
type: 'json',
writeAllFields: true
},
headers: {
'Content-type': 'application/json',
'Accept': 'application/json'
},
// jsonData: {
// data: encodeURIComponent(Image_Tablette_Base_64_2)
// },
jsonData: {
DataPics_1: encodeURIComponent(Image_Tablette_Base_64_2),
DataPics_2: '',
DataPics_3: '',
DataPics_4: '',
DataPics_5: '',
DataPics_6: '',
DataPics_7: '',
DataPics_8: '',
DataPics_9: '',
DataPics_10: '',
},
success: function (response, opts) {
console.log(response.statusText)
},
failure: function (response, opts) {
console.log("Fail : "+response.status+" : "+response.statusText)
},
// callback: function(options) {
// console.log('Données envoyées : ', options.jsonData);
// console.log("callback : "+options)
// }
}); |
Partager