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

Send file to Ninja form #12

Open
AuJakkarin opened this issue Mar 13, 2024 · 2 comments
Open

Send file to Ninja form #12

AuJakkarin opened this issue Mar 13, 2024 · 2 comments

Comments

@AuJakkarin
Copy link

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.

@toriphes
Copy link
Owner

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 :)

@AuJakkarin
Copy link
Author

Hi @toriphes
Thank you for reply, hopefully I can support this feature on the future. :)

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