Comments (4)
both of your file fields have the name files[]
. multiparty does not try to do anything "intelligent" with your form fields other than put them into a flat object. that's a rails thing and it's a bad idea, prone to security flaws.
Just use the event listener if you want to to have multiple fields with the same name.
from multiparty.
If you use connect's multipart middleware, it does what you want. Try this:
https://github.com/superjoe30/connect-multiparty
This module is connect's multipart middleware using multiparty instead of formidable.
from multiparty.
Thanks for taking the time to help.
from multiparty.
Hey @andrewrk, how would you deal with a <input type=file multiple>
case?
http://www.w3schools.com/tags/att_input_multiple.asp
from multiparty.
Related Issues (20)
- unhandled exception on unclear conditions HOT 6
- part "index" or count? HOT 14
- In request with both text and file, byteCount of the file part is incorrect HOT 4
- Getting writeAfterEnd issue on 2nd upload. The program is shared below. HOT 2
- Parsing an multipart of form-data in README example, but files and fields are undefined HOT 2
- form-data file is empty with node version 14.1.0 HOT 9
- TypeScript version of multiparty HOT 1
- form.on('close' event get fired before all form.on('part' are done. NodeJS 14 HOT 3
- form.parse callback prevents form.on('part') from running HOT 2
- `for await ... of ...` never end after upgrade NodeJS to 12.18.3 HOT 18
- Update to mkdirp ≥ 1 HOT 1
- Update mkdirp dev dependency HOT 1
- Listen for close event on part HOT 1
- os.tmpDir seems to be incompatible with Windows HOT 2
- files var in form.parse does not have all the files uploaded HOT 12
- Unable to detect part correctly if content-disposition name or filename headers do not contain double-quotes. HOT 4
- Readme example uses "close" instead of "finish" HOT 4
- Content type does not support application/json HOT 1
- Unicode filenames need to be decoded. HOT 1
- How to parse form-data from RESPONSE not REQUEST?
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 multiparty.