Open AuJakkarin opened 8 months ago
Hello @AuJakkarin,
Sorry, I've never tested file upload using wp-graphql-ninja-forms
plugin.
File upload in graphql is not supported out of the box and I think it needs some help to make it work.
PRs are welcome :)
Hi @toriphes Thank you for reply, hopefully I can support this feature on the future. :)
I using https://github.com/toriphes/wp-graphql-ninja-forms for plugin to connect WPGraphql with ninja form It is working find when I use basic fields for example
mutation MyMutation($Fullname: String!, $PhoneNumber: String!, $Email: String!, $Subject: String!, $Message: String!) { submitForm( input: {formId: 1, data: [ {id: 1, value: $Fullname}, {id: 5, value: $PhoneNumber}, {id: 2, value: $Email}, {id: 6, value: $Subject}, {id: 3, value: $Message} ]} ) { errors { fieldId message slug } message success } }
I have a problem when I want to summit file, I don't know how to submit file. Please you give me some example to use WPGraphql to send data
I have an assumption that I can submit file as blob format and send in form data to WordPress Ninja forms.
Hopefully, Ninja forms will have answer to support me.