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

File Upload cant upload #37

Open
jaymarkjairi opened this issue Sep 10, 2021 · 9 comments
Open

File Upload cant upload #37

jaymarkjairi opened this issue Sep 10, 2021 · 9 comments

Comments

@jaymarkjairi
Copy link

jaymarkjairi commented Sep 10, 2021

I already follow the documentation about this but an error will show
this is the error
image

please see my source code thank you
https://github.com/jaymarkjairi/file-upload

@kalyanmantri
Copy link

facing same issue, any update on this?

@BenjamenMeyer
Copy link

same with version 3.0.0; any updates?

@cabelitos
Copy link
Contributor

Hello guys. Maybe you both are missing some required setps. Our tests are using apollo v3 and are running fine.

@cabelitos
Copy link
Contributor

@BenjamenMeyer
Copy link

We had not yet migrated ApolloServer from apollo-server to apollo-server-express; trying that.
Anything else we should look for?

@cabelitos
Copy link
Contributor

@BenjamenMeyer so this is the case apollo-server does not bundle the file upload support out of the box. Check the link that I sent (https://www.apollographql.com/docs/apollo-server/data/file-uploads/ )

Quoting the docs:
New in Apollo Server 3: Apollo Server 3 does not contain a built-in integration with graphql-upload like in Apollo Server 2. Instead, the instructions below show how to integrate it yourself. You cannot do this with the "batteries-included" apollo-server library; you must use a web framework integration such as apollo-server-express instead. This page shows how to integrate graphql-upload with Express and Fastify. To implement similar functionality with another Node.js HTTP framework (e.g., Koa), see the graphql-upload documentation for more information. Some integrations might need to use graphql-upload's processRequest directly.

@BenjamenMeyer
Copy link

Thanks... we're trying to figure out the port to apollo-server-express

@oliveirarleo
Copy link

@BenjamenMeyer Any updates on this? else we can close this issue.

@BenjamenMeyer
Copy link

@oliveirarleo my (now former) employer ended up abandoning the effort and directing all file-uploads through a RESTful API call outside of the Apollo Server Gateway functionality (which we were using to federate a GraphQL API) as we were having too much difficulty getting it to work.

So while we couldn't get it to work, I wouldn't say this issue is closed unless someone else has fixed something, but I'm no longer in a position to contribute to this at all or even validate a fix. Please handle as you feel is appropriate.

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

5 participants