Skip to content

Commit 35c34e0

Browse files
committed
reformatting markdown in readme
1 parent e16ac55 commit 35c34e0

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

README.md

+11-16
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,26 @@
1-
express-fileupload
2-
===========
1+
# express-fileupload
32
Simple express file upload middleware that wraps around [connect-busboy](https://github.com/mscdex/connect-busboy).
43

4+
## Install
5+
```bash
6+
npm install express-fileupload
7+
```
58

6-
Install
7-
=======
8-
9-
npm install express-fileupload
10-
11-
12-
Important Note
13-
==============
14-
Add `app.use(fileUpload())` AFTER `app.use(bodyParser.json)` and any other bodyParser middlewares! This limitation will be explored and resolved in an upcoming release.
9+
## Important Note
10+
Add `app.use(fileUpload())` *AFTER* `app.use(bodyParser.json)` and any other bodyParser middlewares! This limitation will be explored and resolved in an upcoming release.
1511

16-
Options
1712
=======
1813
Pass in Busboy options directly to express-fileupload (using Busboy `v0.2.13`). Check out the Busboy documentation here: https://github.com/mscdex/busboy#api
14+
1915
```javascript
2016
app.use(fileUpload({
2117
limits: { fileSize: 50 * 1024 * 1024 },
2218
}));
2319
```
2420

25-
Example
26-
=======
21+
## Example
2722

28-
### JavaScript
23+
### Node.js:
2924

3025
```javascript
3126
var express = require('express');
@@ -55,7 +50,7 @@ app.post('/upload', function(req, res) {
5550
});
5651
```
5752

58-
### Form
53+
### HTML Form:
5954
```html
6055
<html>
6156
<body>

0 commit comments

Comments
 (0)