TAILLE DE MA BITE
This commit is contained in:
parent
cdb63e5508
commit
aafe149fe3
1 changed files with 8 additions and 1 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue