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

Use as service #3

Closed
njrfhtd opened this issue Nov 29, 2017 · 7 comments
Closed

Use as service #3

njrfhtd opened this issue Nov 29, 2017 · 7 comments

Comments

@njrfhtd
Copy link

njrfhtd commented Nov 29, 2017

Thank you for your work.
I want to use it as a service. https://github.com/dflourusso/v-file-upload#as-service-1

let fileUpload = new FileUploadService

causes an error:

TypeError: __WEBPACK_IMPORTED_MODULE_1_v_file_upload __. FileUploadService is not a constructor

vue version 2.5.3
What am I doing wrong?

@dflourusso
Copy link
Owner

It should be ‘FileUploadService’ instead of ‘FileOploadService’ 😃

@njrfhtd
Copy link
Author

njrfhtd commented Nov 29, 2017

Sorry, typo
The code is correct, but the error is

@dflourusso
Copy link
Owner

I will check

@dflourusso
Copy link
Owner

I really was an issue.

Update to version 3.1.2

yarn add v-file-upload@3.1.2

@njrfhtd
Copy link
Author

njrfhtd commented Nov 30, 2017

Great
Is the upload cancellation method planned?

Thanks for the work!

@dflourusso
Copy link
Owner

I will implement cancellation ASAP.

@dflourusso
Copy link
Owner

@njrfhtd See: #4

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