Skip to content

Commit

Permalink
nodejs: fix lint (b36bfde)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinneyS committed Oct 31, 2024
1 parent 3010db6 commit 8e260de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/documentserver-example/nodejs/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ app.post('/upload', (req, res) => { // define a handler for uploading files
req.DocManager.createDirectory(uploadDirTmp);

const fileSizeLimit = configServer.get('maxFileSize');
const form = new formidable.IncomingForm({maxFileSize: fileSizeLimit, maxTotalFileSize: fileSizeLimit }); // create a new incoming form
// create a new incoming form
const form = new formidable.IncomingForm({ maxFileSize: fileSizeLimit, maxTotalFileSize: fileSizeLimit });
form.uploadDir = uploadDirTmp; // and write there all the necessary parameters
form.keepExtensions = true;

Expand Down

0 comments on commit 8e260de

Please sign in to comment.