-
Notifications
You must be signed in to change notification settings - Fork 12
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
Files variable type #3
Comments
@sandervanhooft you have to send files as form data. https://github.com/okonet/react-dropzone doesn't appear to have any opinions as to how you send the data, they just provide hooks to receive the dropped files via callbacks |
Hi @thebigredgeek, I have tried the following, but it didn't work:
The Kind regards, Sander |
@HriBB @thebigredgeek How about accepting an array of Files (array) as input? Given the MDN description there seems to be no way to programmatically create a FileList. |
@sandervanhooft take a look at this line. I am checking for the presence of I am busy ATM, I have a presentation about React and GraphQL at the office in a few hours, hopefully after that I will have more time to fix these issues. You are welcome to make a PR for this ;) |
I'll try to look into it. Good luck with your presentation :) |
Also see issue HriBB#3
@HriBB @thebigredgeek
What type should the files variable be when passed to the mutation?
The file upload works fine when using your example code. But when using react-dropzone or tcomb-form the files seem to be not handled appropriately.
The text was updated successfully, but these errors were encountered: