Replies: 1 comment
|
So the mutation call shape is already right: await mutation({ file: files[0] })If it still sends |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This mutation failed to execute with the prompt: Invalid value for argument "file", expected type "Upload", which means the content-type of the file was not converted automatically.
However, it works properly in another version implemented with Svelte.
The Svelte implementation can automatically convert its content-type to multipart/form-data for file upload.
How should I modify it to support file uploads in Vue 3?
All reactions