Comments (3)
Which code example are you using? Does the problem still exist with node v0.10.26? Can you capture the entirety of the raw form upload to a file so I can test with it myself?
from busboy.
Well, I am using exactly like this
var busboy = new Busboy({ headers: req.headers });
busboy.on('file', function(fieldname, file, filename, encoding, mimetype) {
file.pipe(res) // or file.pipe(fs.createWriteStream ...)
});
req.pipe(busboy);
since I couldnt answer you right away, I simply have no access to the other project, I tried in another project, and it worked fine there. (the difference between both projects are client-side libraries used for the upload, but I can test this no problem tomorrow with postman or some other tool)
(the only crazy thing is that it worked fine with other type of files of multiple sizes ... thats what bothered me ...)
dont worry about it man, tomorrow I perform some more tests, and I let you guys know
thanks
from busboy.
Well, the problem didnt have anything to do with this module. I was using superagent to perform HTTP requests, but I guess pipe is broke there, or I did something wrong, I will have to analyze. I changed to the request module, and it worked fine.
Still, it doesnt make sense, based on my first results, since I did pipe the JSON file to a temp file and the results were a incomplete json. I retried the piping to a file now, and it worked fine.
I guess this is it, I am closing the issue. Thanks.
from busboy.
Related Issues (20)
- Depends on vulnerable versions of dicer-- High HOT 2
- Filesize limit fails unless is a rounded integer
- 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
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.