From 01de71698b91bc61e61d076f9c25d1cabb039b18 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Sat, 7 Nov 2020 08:06:57 -0500 Subject: demo-able photo upload --- .../src/components/admin/ProductEditCard.vue | 25 +--------------------- 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'iridescence/src/components') diff --git a/iridescence/src/components/admin/ProductEditCard.vue b/iridescence/src/components/admin/ProductEditCard.vue index 238c975..2784fc9 100644 --- a/iridescence/src/components/admin/ProductEditCard.vue +++ b/iridescence/src/components/admin/ProductEditCard.vue @@ -227,31 +227,8 @@ export default { method: "POST", body: fd }); - console.log(response); - //let reader = new FileReader(); - - //reader.onprogress = e => { - // if (e && e.lengthComputable) { - // this.fileProgress = parseInt((e.loaded / e.total) * 100, 10); - // } - //}; - - //reader.onloadend = e => { - // this.fileProgress = 100; - // this.newProduct.imgPath = file.name; - // let formData = new FormData(); - // formData.append(file.name, e.target.result); - - // fetch("http://localhost:8000/photos", { - // method: "POST", - // body: formData - // }).then(r => { - // console.log(r); - // }); - //}; - - //reader.readAsBinaryString(file); + console.log(response); } } }; -- cgit v1.2.3