Comments (8)
I just tried to attach some file to test and tried to get in a normal implementation of busboy like was described at README file.
request.post('/rest/file/upload/test/metaDocumentId/accessId/recordId/fieldName')
.attach('file', './public/a.txt').expect(200, done)
This test works fine with default express upload handler or using the node-multiparty lib.
from busboy.
Details?
from busboy.
not necessarily a bug with busboy: ladjs/superagent#241
from busboy.
@rodrigok it will not solve any fundamental cause of this issue, but if you really really want to pass the test, you can avoid this by commenting out the check here. It's essentially superagent
's issue as @jonathanong noted.
if (!RE_FIELD.test(parsed[0]))
return;
☟
// if (!RE_FIELD.test(parsed[0]))
// return;
from busboy.
Does anyone have a copy of the entire raw multipart body that's generated by superagent? It would be interesting to see what's causing the problem...
from busboy.
Closing this for now, if this is still a problem and the problematic superagent raw request data is available somewhere, I will see if there is anything I can do.
from busboy.
Little update: this should be fixed now in superagent by this.
from busboy.
Thank you!
from busboy.
Related Issues (20)
- Duplicate or Invalid values exists in buffer when writing file HOT 2
- 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
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.