DEV Community

Discussion on: Handling File Uploads with Apollo Server 2.0.

Collapse
 
eriickson profile image
Erickson Manuel Holguín

Hello my friend, your explanations served me wonderfully, they work perfectly :) Thank you very much, but the problem lies when I migrate this to my express server that has apollo-server-express I add "app.use (" / graphql ", graphqlUploadExpress ({maxFileSize: 10000000, maxFiles: 10}));
"to connect it with express, but the request doesn't even reach the server, the frontend just shows me an error saying" Error: Network error: Unexpected token <in JSON at position 0 "

Collapse
 
dnature profile image
Divine Hycenth

Hi Erick. I'll be happy to help you debug it.
Hit me up on twitter twitter.com/DivineHycenth