diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-11-07 08:06:57 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-11-07 08:06:57 -0500 |
commit | 01de71698b91bc61e61d076f9c25d1cabb039b18 (patch) | |
tree | 9f0e460c49034ad3faaafcb27e7fe63cc1a3e23c /iridescence/src/components/admin | |
parent | 76ad709e0afed734c4331ddb8de91745a541a67d (diff) | |
download | theglassyladies-01de71698b91bc61e61d076f9c25d1cabb039b18.tar.xz theglassyladies-01de71698b91bc61e61d076f9c25d1cabb039b18.zip |
demo-able photo upload
Diffstat (limited to 'iridescence/src/components/admin')
-rw-r--r-- | iridescence/src/components/admin/ProductEditCard.vue | 25 |
1 files changed, 1 insertions, 24 deletions
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); } } }; |