You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A node.js module for parsing form data, especially file uploads.
7
+
A Node.js module for parsing form data, especially file uploads.
8
8
9
9
## Current status
10
10
11
+
**Maintainers Wanted:** Please see https://github.com/felixge/node-formidable/issues/412
12
+
11
13
This module was developed for [Transloadit](http://transloadit.com/), a service focused on uploading
12
14
and encoding images and videos. It has been battle-tested against hundreds of GB of file uploads from
13
15
a large variety of clients and is considered production-ready.
@@ -22,19 +24,12 @@ a large variety of clients and is considered production-ready.
22
24
23
25
## Installation
24
26
25
-
This is a low level package, and if you're using a high level framework such as Express, chances are it's already included in it. You can [read this discussion](http://stackoverflow.com/questions/11295554/how-to-disable-express-bodyparser-for-file-uploads-node-js) about how Formidable is integrated with Express.
This is a low-level package, and if you're using a high-level framework it may already be included. However, [Express v4](http://expressjs.com) does not include any multipart handling, nor does [body-parser](https://github.com/expressjs/body-parser).
32
+
38
33
Note: Formidable requires [gently](http://github.com/felixge/node-gently) to run the unit tests, but you won't need it for just using the library.
39
34
40
35
## Example
@@ -87,7 +82,7 @@ Sets encoding for incoming form fields.
87
82
form.uploadDir="/my/dir";
88
83
```
89
84
Sets the directory for placing file uploads in. You can move them later on using
90
-
`fs.rename()`. The default is `os.tmpDir()`.
85
+
`fs.rename()`. The default is `os.tmpdir()`.
91
86
92
87
```javascript
93
88
form.keepExtensions=false;
@@ -272,7 +267,18 @@ Emitted when the entire request has been received, and all contained files have
272
267
273
268
## Changelog
274
269
275
-
### v1.0.14
270
+
### v1.1.1 (2017-01-15)
271
+
272
+
* Fix DeprecationWarning about os.tmpDir() (Christian)
273
+
* Update `buffer.write` order of arguments for Node 7 (Kornel Lesiński)
274
+
* JSON Parser emits error events to the IncomingForm (alessio.montagnani)
0 commit comments