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

Middleware resolves before ctx.requests is populated with uploaded file information #17

Open
marcandrews opened this issue Jun 4, 2017 · 0 comments

Comments

@marcandrews
Copy link

I am running into a strange issue. After switching to Google Cloud, all my upload API endpoints are failing. The file is being uploaded successfully to my temporary directory, but it seems that the middleware is resolving before ctx.requests is populated with the information about the file. This might only occur on highly spec'ed servers.

From this koa issue and comment, it was recommended that instead of .then(next), you resolve(next()). I didn't have time to try this out myself so I just switched to another upload-handling middleware, but this may be something that might be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant