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

Is there an Example on how to handle file uploading? #29

Open
Maxino22 opened this issue Sep 12, 2024 · 1 comment
Open

Is there an Example on how to handle file uploading? #29

Maxino22 opened this issue Sep 12, 2024 · 1 comment

Comments

@Maxino22
Copy link

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

@Valian
Copy link
Owner

Valian commented Sep 12, 2024

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.

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