minmod
This commit is contained in:
parent
19ffb07860
commit
d4b8ac1da2
|
@ -4,13 +4,13 @@ var fileInput = document.querySelector('input[type=file]');
|
||||||
|
|
||||||
fileInput.addEventListener('change', function(e){
|
fileInput.addEventListener('change', function(e){
|
||||||
/* (1) On rédige la requête */
|
/* (1) On rédige la requête */
|
||||||
var request = {
|
var uploadRequest = {
|
||||||
path: 'upload/call_log',
|
path: 'upload/call_log',
|
||||||
file: fileInput.files[0]
|
file: fileInput.files[0]
|
||||||
};
|
};
|
||||||
|
|
||||||
/* (2) On effectue l'upload (import) */
|
/* (2) On effectue l'upload (import) */
|
||||||
api.send(request, function(response){
|
api.send(uploadRequest, function(response){
|
||||||
console.log( response );
|
console.log( response );
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue