I am studying the koa example--multipart,there is my code:
var parts = parse(this.request,{
autoFields:true
});
var tmpdir = path.join(os.tmpdir(),uid());
yield fs.mkdir(tmpdir);
var files = [];
var file;
var part;
while(part = yield parts){
files.push(file = path.join(tmpdir,part.filename));
yield saveTo(part,file);
}
there is a error "Missing content type" when i test use:
I am studying the koa example--multipart,there is my code:
there is a error "Missing content type" when i test use:
so I log the opations.headers,before
new Busboy(options)
i found the headers log twice and they are different.why they log twice and why they are differents?
thanks i am a fresher