Is there an Example on how to handle file uploading?
const submitFiles = () => {
console.log('Email:', email.value);
console.log('Files:', fileNames.value);
hook.upload("image", files.value);
hook.pushEvent("save", { email: email.value })
};
This is what I thougt would work not sure on the server side
To be honest I didn't yet try to tackle file uploads with LiveVue.
Would be amazing if you could try to make it working. useLiveVue returns a hook instance with upload method. Just I'm not sure if it would be enough, there's likely some more to the mix, probably there's a need for a form with correct inputs.
@Maxino22 I've just added composable for file uploads in LiveVue. It should be trivial now to upload files, please check docs! Should be included in 0.7.0 version, released soon
Released in v0.7.0! Please check docs for more details.