title: Vue2-Dropzone: How to use removeFile(file)?
body: <p>I created a custom Dropzone with vue2Dropzone:</p>
  
  <pre><code>&lt;drop-zone :options="MydropzoneOptions" :include-styling="false" @vdropzone-success="UploadSuccess" @removeUpload="removeFile" id="MyDropzoneID" ref="MyDropzone" :useCustomSlot=true&gt;
          &lt;div class="dropzone-custom-content"&gt;
              &lt;h3&gt;Upload Here&lt;/h3&gt;
          &lt;/div&gt;
  &lt;/drop-zone&gt;
  </code></pre>
  
  <p>The uploaded files are then displayed in a seperate div with the id="uploaded":</p>
  
  <pre><code>    &lt;div id="uploaded" class="dropzone-previews"&gt;
          &lt;h3&gt;Uploaded Files:&lt;/h3&gt;
          &lt;template v-for="(UploadFile,index) in MyUploads"&gt;
              &lt;img :src="UploadFile.Dateiname"&gt;&lt;a title="Delete this file" @click="$emit('removeUpload')"&gt;Delete&lt;/a&gt;
          &lt;/template&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>In the 'uploaded' div, beside each uploaded image (thumbnail) there is a link to delete each file. But I don't know how to implement this function. The <a href="https://rowanwins.github.io/vue-dropzone/docs/dist/#/methods" rel="nofollow noreferrer">documentation says</a> there's a method called removeFile(file):
  <code>.removeFile(file) --&gt;Removes a file from the dropzone area.</code></p>
  
  <p>I created a method called removeThisFile, launched @click="removeThisFile":</p>
  
  <pre><code>    removeThisFile: function(){
          this.$refs.MyDropzone.removeFile()
          console.log("File removed!")
      }
  </code></pre>
  
  <p>But the result was the console saying "this.$refs.Mydropzone is undefined, which makes sense now, since only the  DOM object can pass the needed file infos.
  So I decided to try the version you see at the beginning:</p>
  
  <pre><code>&lt;div&gt;&lt;a[..] @click="$emit('removeUpload')&gt;&lt;/a&gt;&lt;/div&gt;
  </code></pre>
  
  <p>and in the drop-zone DOM object there's a listener to this, launching my method "removeThisFile".</p>
  
  <pre><code>   &lt;drop-zone [..] @removeUpload="removeThisFile" [..]&gt;&lt;/drop-zone&gt;
  </code></pre>
  
  <p>But this also isn't working, I don't know why, since I get no error in the console, but also the method isn't launched, since there's also no "File removed!" in the console. </p>
  
  <p>Why isn't it working, is this at all the right way to do this?</p>