TAILLE DE MA BITE

This commit is contained in:
johan 2023-01-09 09:38:03 +01:00
parent cdb63e5508
commit aafe149fe3

View file

@ -616,6 +616,11 @@ $('.close').click((e) => {
$('#treasure-popup-button').click((e) => {
var fr = new FileReader();
let f = $('#treasure-popup-image').prop('files')[0];
if(f.size > 10**7) {
alert('Le fichier est beaucoup trop gros !');
return;
}
var indata = {
uid: localStorage.getItem('user'),
@ -648,7 +653,9 @@ $('#treasure-popup-button').click((e) => {
});
});
fr.readAsDataURL($('#treasure-popup-image').prop('files')[0]);
fr.readAsDataURL(f);
});
$('#demande-button').click(function () {