Weakky / ra-data-opencrud

A react-admin data provider for Prisma and GraphCMS
MIT License
159 stars 45 forks source link

How upload image #27

Open dannying opened 5 years ago

dannying commented 5 years ago

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 commented 5 years ago

@dannying did you find any solution?

dannying commented 5 years ago

@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