Modify parser middleware code for multipart upload

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

Hello - I am writing a route for multipart upload. Planning on using the @koa/multer middleware. I am finding that the ctq.request.files in empty if the parser middleware is enabled. If i put an exception like the one added for graphql it works. Line 41 in the index.js for parser
// disable for graphql
// TODO: find a better way later
if (ctx.url === ‘/graphql’) {
return next();
}

Any thoughts if I am doing this right, and how do i update the core middleware to not parse the \upload route.

Thanks
Tab