diff --git a/www/src/components/File.vue b/www/src/components/File.vue index fc95920..754fb4a 100644 --- a/www/src/components/File.vue +++ b/www/src/components/File.vue @@ -121,9 +121,9 @@ export default { } xhr.onload = (event) => { this.progress = 100; - const file = new File([event.target.response], "file"); - this.size = file.size; - this.$worker.postMessage([ 'get_file_info', file ]); + this.file = new File([event.target.response], "file"); + this.size = this.file.size; + this.$worker.postMessage([ 'get_file_info', this.file ]); setTimeout(() => { this.showProgress = false; }, 2000); } xhr.open('GET', this.url, true);