# Cannot upload file in apollo federation with apollo server 4, expressMiddleware, @apollo/gateway

**URL:** <https://community.apollographql.com/t/cannot-upload-file-in-apollo-federation-with-apollo-server-4-expressmiddleware-apollo-gateway/5567>\
**Category:** Server\
**Tags:** server, federation\
**Created:** [January 26, 2023, 3:29am UTC](https://community.apollographql.com/t/cannot-upload-file-in-apollo-federation-with-apollo-server-4-expressmiddleware-apollo-gateway/5567 "2023-01-26T03:29:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emmanuel\_Oppong\_Juni](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/emmanuel_oppong_juni/32/3773_2.png) [@Emmanuel\_Oppong\_Juni](https://community.apollographql.com/u/Emmanuel_Oppong_Juni)\
**Post date:** [January 26, 2023, 3:29am UTC](https://community.apollographql.com/t/cannot-upload-file-in-apollo-federation-with-apollo-server-4-expressmiddleware-apollo-gateway/5567/1 "2023-01-26T03:29:04Z")

</div>

Hi, my team and I are working a micro services based on apollo graphql and apollo federation. We have gotten a point where we need to add file upload functionality to our application but we have not been able to at some level. We have been able to add the file upload functionality to our subgraphs and they are working but submitting the file through the gateway to the subgraph has been the challenge.  
We searched online and found a package called @profusion/apollo-federation-upload which we implemented based on the docs on the package but still we have not been able to achieve what we want, thus sending the file through the gateway to the subgraph. We also realized that all the solutions that people have provided was based on either apollo server 2 or apollo server 3 but since we are using apollo server 4, we are struggling to get any useful help

We will appreciate if we could get some working tutorial on how to upload file in apollo server 4 and expressMiddleware in a federated graph setup. Thank you

---

<div class="post-metadata">

**Author:** ![watson](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/watson/32/2053_2.png) [@watson](https://community.apollographql.com/u/watson)\
**Post date:** [February 1, 2023, 4:20pm UTC](https://community.apollographql.com/t/cannot-upload-file-in-apollo-federation-with-apollo-server-4-expressmiddleware-apollo-gateway/5567/2 "2023-02-01T16:20:48Z")

</div>

Thanks for your feedback. We have had some discussions of File Upload being supported in the Apollo Router. Keep an eye out on [our weekly changelog](https://www.apollographql.com/blog/community/changelog/apollo-changelog-jan-30-2023/) and I’ll try and update here if that happens.

---

<div class="post-metadata">

**Author:** ![amilich](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/amilich/32/4682_2.png) [@amilich](https://community.apollographql.com/u/amilich)\
**Post date:** [October 22, 2023, 11:36pm UTC](https://community.apollographql.com/t/cannot-upload-file-in-apollo-federation-with-apollo-server-4-expressmiddleware-apollo-gateway/5567/3 "2023-10-22T23:36:03Z")

</div>

Having the same issue. Supporting file upload seems like critical functionality.

---

<div class="post-metadata">

**Author:** ![Justin\_Gonzalez](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/justin_gonzalez/32/5359_2.png) [@Justin\_Gonzalez](https://community.apollographql.com/u/Justin_Gonzalez)\
**Post date:** [February 6, 2025, 8:48pm UTC](https://community.apollographql.com/t/cannot-upload-file-in-apollo-federation-with-apollo-server-4-expressmiddleware-apollo-gateway/5567/4 "2025-02-06T20:48:03Z")

</div>


