Closed j closed 6 years ago
I'm creating a new "key" and want to simply store the file-data after it's stored in S3. Everything works, but nothing gets passed back to the koa context. Anyway of doing this?
Nvm, got it:
router.post('/upload', multer.single('file'), async (ctx) => { const { key, location } = ctx.req.file; // ... });
I'm creating a new "key" and want to simply store the file-data after it's stored in S3. Everything works, but nothing gets passed back to the koa context. Anyway of doing this?