Skip to content

Commit

Permalink
Fixed 'PayloadTooLargeError: request entity too large' #341 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
givanz committed Apr 29, 2024
1 parent 21b4263 commit 0711eae
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 54 deletions.
198 changes: 147 additions & 51 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"url": "https://github.com/givanz/VvvebJs.git"
},
"dependencies": {
"express": "^4.18.2"
"express": "^4.19.2"
},
"keywords": [
"vvvebjs",
Expand Down
5 changes: 3 additions & 2 deletions save.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ const app = express();
const bodyParser = require('body-parser');
const fs = require('fs');

app.use(express.json());
//app.use(express.json({ limit: "200mb" }));
app.use(express.static("./"));
app.use(bodyParser.urlencoded({
extended: true
extended: true,
limit: "200mb"
}));

app.post('/save.php', (req, res) => {
Expand Down

0 comments on commit 0711eae

Please sign in to comment.