This commit is contained in:
Shish
2024-01-01 00:53:46 +00:00
parent e56e166a76
commit a906c3c457
3 changed files with 5 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ function updateTracker() {
if (input.files.length) {
if(cancelbtn) cancelbtn.style.visibility = 'visible';
for (var i = 0; i < input.files.length; i++) {
size += input.files[i].size;
size += input.files[i].size + 1024; // extra buffer for metadata
if (window.shm_max_size > 0 && input.files[i].size > window.shm_max_size) {
toobig = true;
}