title: Upload images with Vue.js using events not working due to component issue
body: <p>I am trying to upload images with this <a href="https://vuejsexamples.com/a-simple-upload-multiple-image-component-for-vuejs/" rel="nofollow noreferrer">plugin</a>, but unfortunately my <code>uploadImageSuccess</code> event is not firing. Really sorry if wrong because I'm new to Vue.js.</p>
  
  <p>This is my code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8"&gt;
          &lt;title&gt;vue-upload-multiple-image&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div id="el"&gt;
              &lt;div id="my-strictly-unique-vue-upload-multiple-image" style="display: flex; justify-content: center;"&gt;
                  &lt;vue-upload-multiple-image
                      @upload-success="uploadImageSuccess"
                      @before-remove="beforeRemove"
                      @edit-image="editImage"
                      @data-change="dataChange"
                      :data-images="images"
                      &gt;&lt;/vue-upload-multiple-image&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
  
          &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.min.js"&gt;&lt;/script&gt;
          &lt;script src="https://unpkg.com/vue-upload-multiple-image@1.0.2/dist/vue-upload-multiple-image.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript"&gt;
              var vm = new Vue({
                  el: '#el',
                  data() {
                      return {
                          images: []
                      }
                  },
                  components: {
                      VueUploadMultipleImage
                  },
                  methods: {
                      uploadImageSuccess(formData, index, fileList) {
                          alert('dd');
                          console.log('data', formData, index, fileList)
                          // Upload image api
                          // axios.post('http://your-url-upload', { data: formData }).then(response =&gt; {
                          //   console.log(response)
                          // })
                      },
                      beforeRemove(index, done, fileList) {
                          console.log('index', index, fileList)
                          var r = confirm("remove image")
                          if (r == true) {
                              done()
                          } else {
                          }
                      },
                      editImage(formData, index, fileList) {
                          console.log('edit data', formData, index, fileList)
                      },
                      dataChange(data) {
                          console.log(data)
                      }
                  }
              });
          &lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>It would be great if someone can help. I get this error:</p>
  
  <blockquote>
    <p>ReferenceError: VueUploadMultipleImage is not defined</p>
  </blockquote>