Comments (6)
Do you have a reproducible test?
from busboy.
I am using express 3.4.8
var busboy = new Busboy({ headers: req.headers });
busboy.on('error', function() {
res.json(503, {OK: false});
});
/*busboy.on('file', function(fieldname, file, filename, encoding, mimetype) {
console.log('File [' + fieldname + ']: filename: ' + filename + ', encoding: ' + encoding);
file.on('error', function (e) {
console.log('File Error: ', e);
file.read();
});
file.resume();
});*/
busboy.on('field', function(fieldname, val, valTruncated, keyTruncated) {
console.log('Field [' + fieldname + ']: value: ' + inspect(val));
});
busboy.on('finish', function() {
console.log('FINISH!');
//console.log('Content-Type: ', req.get('content-type'));
//console.log('BODY: ', req.body);
res.json(200, {OK: true});
});
req.pipe(busboy);
This is the route that handles the upload. You can see that i have the file handler commented, in this case, there is no finish event fired.
from busboy.
What version of busboy are you using?
from busboy.
busboy 0.1.1
from busboy.
That's why then. That particular change was made in v0.2.0.
from busboy.
I thought i already had the latest. silly mistake, sorry about that.
from busboy.
Related Issues (20)
- node:http 302 redirect does not work with large file stream
- [QUESTION] Busboy and Expressjs - response not sent back to the client if next(new Error(...)) is called inside "file" event HOT 1
- Upload file stream directly to S3. Unknown content-length HOT 1
- multipart/form-data windows-1251 HOT 4
- Content-Transfer-Encoding for POST request on multipart message not working HOT 2
- ERR_CONNECTION_ABORTED with long file uploads HOT 6
- licenses in package.json is deprecated HOT 2
- Bug on UTF-8 filenames HOT 2
- Problem on utf8 filename HOT 5
- Missing Content-Type HOT 7
- [email protected] SyntaxError: Unexpected token { HOT 1
- Busboy does not recognize `image/jpeg` without `filename` as files HOT 1
- Extracting Filename when Empty String fails
- need to get raw headers HOT 1
- busboy seems to read ahead too fast for many small (< 16KiB) files HOT 5
- Events order when parsing file HOT 6
- Typings for field name HOT 1
- File event has not been triggered with nuxt 3 HOT 5
- Unexpected end of form HOT 2
- File size unavalaible HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from busboy.