@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 49fbe3a
Fork 0

سامانه صدور فاکتور و حسابداری

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 3, 22:00 UTC

Bound backup import file size

davoodmehraban89 committed Sep 29, 2026 at 22:35 UTC 49fbe3ab5de59d0dae2c9113c1e92842128b286e
1 file changed +1 -1
js/backup.js
+1 -1
@@ -12,7 +12,7 @@ function importDataBlob(event){
12 if(!requireWrite())return;
13 if(!currentUser)return;
14 const file=event.target.files[0];
15 - if(!file)return;
15 + if(!file)return;if(file.size>20*1024*1024){event.target.value='';alert('حجم فایل پشتیبان نباید بیشتر از ۲۰ مگابایت باشد.');return;}
16 const reader=new FileReader();
17 reader.onload=function(e){
18 try{