<v-cloudinary-uploadautoUploadaccountName="skyatura" preset="foo"><button>Click here to select a file</button></v-cloudinary-upload>
Unsigned upload with preview
<v-cloudinary-uploadautoUploadaccountName="skyatura" preset="foo"><templateslot-scope="props"><img:src="props.url" v-if="props.url"><buttonv-else>Click here to select a file</button></template></v-cloudinary-upload>
Signed upload
<template><v-cloudinary-uploadref="img" accountName="skyatura" @picked="onPickFile"><button>Click here to select a file</button></v-cloudinary-upload></template><script>exportdefault{methods: {asynconPickFile(){constparams=awaitthis.$axios.$get('/upload/userPicture')this.$refs.img.upload(params)}}}</script>
Properties
Property
Required
Type
Description
accountName
true
String
Your Cloudinary's account name
autoUpload
false
Boolean
If the component should automatically perform an upload after selecting a file