Get Total File Size before upload

Hi, I need to get total file size before upload, right now I get total file size using

onBeforeUpload: function async(files) {
                let totalSize = 0;
                for (const [key, file] of Object.entries(files)) {
                    totalSize += file.size;

Is there simple way to get total file size?

1 Like

Hi, no I don’t think there is a simpler way.