diff --git a/public/js/app.js b/public/js/app.js index 905e282..25fc902 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -244,9 +244,8 @@ loadingTask.promise.then(function(pdf) { throttle: 0, onEnd: function() { document.getElementById('btn_modal_ajouter').setAttribute('disabled', 'disabled'); - - const file = new File([dataURLtoBlob(signaturePad.toDataURL("image/svg+xml"))], "draw.svg", { - type: 'image/svg+xml' + const file = new File([dataURLtoBlob(signaturePad.toDataURL())], "draw.png", { + type: 'image/png' }); var data = new FormData(); data.append('file', file);