Context is empty when File Uploads
Opened this issue · 4 comments
ssdk86 commented
Hi Ben, Thanks for a Great tutorial!
Have a question according to video File Uploads TypeGraphQL https://www.youtube.com/watch?v=s35EmAn9Zl8
So in addProfilePicture we cannot use @UseMiddleware(isAuth, logger) because @ctx() ctx: MyContext is empty? it is possible to send context?
benawad commented
I don't think the context should be empty, is it empty in your resolver too?
ssdk86 commented
ssdk86 commented
@benawad, sorry I incorrectly described the problem. context is not empty. empty cookies that I set in ctx.req.cookies
benawad commented
cookies work with file uploads, so there's something slightly off with your setup