Permalink
Browse files

docs for prev commit

  • Loading branch information...
1 parent 6db7b91 commit 4135a2b1613bc159e08c2f5719e8a9f8ea3df702 @tj committed Oct 25, 2011
Showing with 22 additions and 1 deletion.
  1. +22 −1 README.md
View
@@ -30,10 +30,31 @@ app.use(parted({
// memory usage limit per request
limit: 30 * 1024,
// disk usage limit per request
- diskLimit: 30 * 1024 * 1024
+ diskLimit: 30 * 1024 * 1024,
+ // allow multiple parts of the same name,
+ // then available as an array
+ multiple: true
}));
```
+When `multiple` is disabled only a single part will be present
+for a given name, for example:
+
+```js
+{ image: '/tmp/bigred.1319577761529.png' }
+```
+
+However when `multiple` is enabled, this _may_ be an array:
+
+```js
+{ images:
+ [ '/tmp/bigred-pau.1319577761529.png',
+ '/tmp/bigred-ico.1319577761528.png',
+ '/tmp/bigred-rec.1319577761529.png',
+ '/tmp/bigred-sto.1319577761529.png',
+ '/tmp/bigred.1319577761529.png' ] }
+```
+
## Usage
### The multipart parser alone

0 comments on commit 4135a2b

Please sign in to comment.