vue-dropzone
vue-dropzone copied to clipboard
Can not pass $axios to options for xhr call which is missing updated token
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 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)