Form submit with input file - Next js + craft cms headless #10133
-
Hey guys, I was wondering what is the best solution when it comes to submit a form with a file input? Should I use mutation or create a controller? If so ... how can i link the file uploaded with the assets ? If there's any tutorial please let me know. Cheers. |
Beta Was this translation helpful? Give feedback.
Answered by
brandonkelly
Nov 22, 2021
Replies: 1 comment
-
Here’s our docs for it: https://craftcms.com/docs/3.x/graphql.html#saving-files-via-mutations |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
brandonkelly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here’s our docs for it: https://craftcms.com/docs/3.x/graphql.html#saving-files-via-mutations