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 is corrupted when running serverless offline #2

Open
ezeikel opened this issue Oct 31, 2021 · 0 comments
Open

File upload is corrupted when running serverless offline #2

ezeikel opened this issue Oct 31, 2021 · 0 comments
Labels
bug Something isn't working serverless

Comments

@ezeikel
Copy link
Owner

ezeikel commented Oct 31, 2021

Works fine when deployed to AWS after adding:

  apiGateway:
    binaryMediaTypes:
      - "*/*"

to the serverless.yml

https://www.serverless.com/framework/docs/providers/aws/events/apigateway/#binary-media-types

Would be great to get file uploads working locally. A possible workaround found in other issues would be to base64 encode it before uploading.

Linked issues:
jaydenseric/graphql-upload#155 (comment)
dherault/serverless-offline#464
apollographql/apollo-server#4951

@ezeikel ezeikel added the bug Something isn't working label Oct 31, 2021
@ezeikel ezeikel changed the title File upload is corrupted when running serverless offiline File upload is corrupted when running serverless offline Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working serverless
Projects
None yet
Development

No branches or pull requests

1 participant