Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mahmed0715 opened this issue Apr 6, 2021 · 1 comment

Comments

@mahmed0715
Copy link

mahmed0715 commented Apr 6, 2021

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

@ajingopi-bridge
Copy link

@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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants