Upload file during entity creation using GraphQL

Hi everyone, I would like to upload file during entity creation as explained right there in documentation: https://strapi.io/documentation/developer-docs/latest/plugins/upload.html#upload-file-during-entry-creation. However, I would like to know if it is possible to use GraphQL instead of a classic AJAX request to achieve so.

System Information
  • Strapi Version: 3.4.1
  • Operating System: macOS
  • Database: Mongo
  • Node Version: 12.16.1
  • NPM Version: 6.13.14


Hi clment305,
I worked at this for quite a while a few months or so ago and I was not able to come up with a solution to this using GraphQL. I’m interested to know as well. I ended up splitting the upload and entity creation into two parts. In some ways this worked out to have some advantages, but I still would really like to use GraphQL to do this in other parts of the application. Anyway, you are not alone! I’m going to keep an eye out and see if anyone else has ideas.


I am in the same situation, I can’t see a way of doing this with GraphQL. Have you guys found a solution for this yet other than splitting it into two separate calls?