vue-image-chooser
This is vue plugin with simple component for choosing image. It supports easy implementation for image upload to the backend.
Installation
Registring plugin:
This will make vue-image-chooser component globaly available. Bellow is example how to use it with axios library
Usage
The component takes four props:
name
(String): Required prop, must be unique (you can consider it like id)progress
(Number): Number between0-100
. If it isnull
or100
component consider uploading process finished.error
(String): Error message in case that server responded with errorheight
(String): Default is350px
The component emits change
event with single file as data, when it recieve an image, after it can be uploaded as described above)