Closed yevhenii-kas-oppizi closed 2 years ago
graphql-upload
is designed to work with a multipart request stream, which is not the way AWS Lambda works. Your request for assistance is better directed at the apollo-server-lambda
maintainers and community. You can track if we ever produce an AWS Lambda implementation here which we could then support at https://github.com/jaydenseric/graphql-upload/issues/155 .
I tried to apply the same logic with uploading on the express server without the serverless framework, and it works.
That's is indeed a clue that maybe your resolver code is fine, and there is something wrong with the server infrastructure or apollo-server-lambda
, but I'm not in a good position to speculate.
I try to upload a pdf file to S3, and files are uploading, but files have blank pages or are even not open.
I tried to apply the same logic with uploading on the express server without the serverless framework, and it works. I don't understand how I should upload my pdf's to S3 from apollo-server-lambda serverless server, So maybe you can help with some tip
Here is my code, how i run the server:
Here is my code, how i save the file to S3: