Lambda-School-Labs/Labs26-StorySquad-BE-TeamB

View on GitHub
api/middleware/fileUpload.js

Summary

Maintainability
A
1 hr
Test Coverage

Function fileUploadHandler has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const fileUploadHandler = async (req, res, next) => {
  // Create a new instance of a multiparty form object
  const form = new multiparty.Form();
  // Parse the form data from the request body into multiparty
  form.parse(req, async (error, fields, files) => {
Severity: Minor
Found in api/middleware/fileUpload.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status