Closed rafinskipg closed 3 years ago
Are you handling file upload stream errors?
How do you handle the file upload stream errors?
I just followed the documentation:
app.use(graphqlUploadExpress({ maxFileSize: 1000000, maxFiles: 10 }));
@rafinskipg I linked an example in the previous comment.
I'm sorry but it does not seem to work with my current set-up.
It seems that the error is launched when createReadStream
because the file is bigger than the size. Anyway, wrapping createReadStream
with a try/catch seems to work for me! Thanks Mr jaydenseric. May the force be with you
I'm sorry but it does not seem to work with my current set-up.
It seems that the error is launched when
createReadStream
because the file is bigger than the size. Anyway, wrappingcreateReadStream
with a try/catch seems to work for me! Thanks Mr jaydenseric. May the force be with you
I had the same problem and this was the only solution that worked for me. Thank you Rafin!
Hello, sorry if this is a duplicate, i didn't found it.
How one can handle the maxFileSize error with express?
I am seeing this error
But I don't see how to attach any callback to the graphqlUploadExpress
Thanks