vue-dropzone icon indicating copy to clipboard operation
vue-dropzone copied to clipboard

Can not pass $axios to options for xhr call which is missing updated token

Open mahmed0715 opened this issue 3 years ago • 1 comments

Hi, Thanks for this module, this is a great module, I was wondering there is way to pass our custom $axios instance to options so that whatever we updated in our $axios can be used and we have a break free system.. Thanks

mahmed0715 avatar Apr 06 '21 05:04 mahmed0715

@mahmed0715 Yes you could use autoProcessQueue: false, in options and custom upload using $axios from file-added event. See the below example.

async sendFile(file) {
      const data = new FormData()
      data.append('file', file)

      const imageApi = 'api-end-point'

      await this.$axios.$put(imageApi, data)

ajingopi-bridge avatar May 02 '21 06:05 ajingopi-bridge