} else {
          this.uploadProductImage(this.productKey)
        }
      }

      uploadProductImage(filename) {
        let file = this.$.uploadImageFile.files[0]

        if (file.type.match(/image.*/) && file.size < this.maxFileSize) {
          this.toastText = 'Uploading image'
          this.$.toastAlert.open()
          let uid = this.k.key
          let storageRef = this.$.auth.app.storage().ref()
          let metadata = {
            'contentType': file.type
          }
          let imagesRef 