title: How to Use vue-dropzone to upload images with axios?
body: <p>I'm trying to use vue-dropzone to upload my images to the database, the uploading API example provided by the backend developer is like this:</p>
  
  <pre class="lang-js prettyprint-override"><code>export const actions = {
    uploadGallery (ctx, file) {
      return new Promise((resolve, reject) =&gt; {
        this.$axios.$post('galleries/upload', file)
          .then(resolve)
          .catch(reject)
      })
    }
  }
  </code></pre>
  <p>My dropzone options is like this:</p>
  
  <pre class="lang-js prettyprint-override"><code>  dropzoneOptions: {
      url: 'galleries/upload',
      thumbnailWidth: 175,
      thumbnailHeight: 150,
      maxFilesize: 1,
      addRemoveLinks: true
    }
  </code></pre>
  <p>I just simply put the request URL in the dropzone options, but it doesn't work correctly.
  Can anybody show me how I can integrate the dropzone and Axios? (also keep the progress bar function, I can set <code>autoProcessQueue</code> to <code>false</code> and use an external method to upload images, but if I do that, the progress bar won't update)</p>
  <p>I appreciate your help!</p>