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

Support dynamic dest #3

Open
dxcqcv opened this issue Sep 19, 2017 · 1 comment
Open

Support dynamic dest #3

dxcqcv opened this issue Sep 19, 2017 · 1 comment

Comments

@dxcqcv
Copy link

dxcqcv commented Sep 19, 2017

Add feature dynamic dest like depend on post data, code like

const uploader = async ctx => {
  console.log(ctx.request.body)
  const {path} = ctx.request.body
  return await busboy({
    dest: path,
    fnDestFilename: (fieldname, filename) => filename
  })
}
@dominhhai
Copy link
Owner

@dxcqcv thanks for your nice code!

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

2 participants