Skip to content

Commit ff8436a

Browse files
committed
Set file size limit
1 parent c19d22d commit ff8436a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ const app = feathers();
2525
// Serve our index page
2626
app.use('/', serveStatic(__dirname))
2727
// Parse HTTP JSON bodies
28-
app.use(bodyParser.json());
28+
app.use(bodyParser.json({limit: '10mb'}));
2929
// Parse URL-encoded params
30-
app.use(bodyParser.urlencoded({ extended: true }));
30+
app.use(bodyParser.urlencoded({limit: '10mb', extended: true }));
3131
// Register hooks module
3232
app.configure(hooks());
3333
// Add REST API support

0 commit comments

Comments
 (0)