apiGateway: binaryMediaTypes: - 'image/png' - 'image/jpeg' - 'multipart/form-data'
adding this configuration to serverless.yml worked for me