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

How upload image #27

Open
dannying opened this issue Mar 4, 2019 · 2 comments
Open

How upload image #27

dannying opened this issue Mar 4, 2019 · 2 comments

Comments

@dannying
Copy link

dannying commented Mar 4, 2019

How can I upload images ? I added the "picture" field. when I try to select an image and click on the save, I get the error Cannot read property 'name' of null.

 <ImageInput source="images" label="Related pictures" accept="image/*">
        <ImageField source="create.src" />
 </ImageInput>

my mutation arguments:
data: {name:"string", image: {create: src:"string"}}

@abdullah-almesbahi
Copy link

@dannying did you find any solution?

@dannying
Copy link
Author

@abdullah-almesbahi No:( I decided to create admin framework for graphql, it quickly and right solution in my opinion. You can try to use ra-data-graphql adapter and graphql yoga, but I couldn't connect them. Maybe you be able

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