Skip to content

Commit

Permalink
add formidable file upload example
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Oct 8, 2023
1 parent 560cd44 commit 4556386
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/formidable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ broker.createService({
methods: {
handleFileUpload(req, res) {
// parse a file upload
const form = new formidable.IncomingForm();
form.multiples = true;
const form = formidable({ multiples: true });

form.parse(req, async (err, fields, files) => {
if (err) {
Expand Down

0 comments on commit 4556386

Please sign in to comment.