Skip to content

PiedTeam/DreameCloneTraining-BE-Project

Repository files navigation

DreameCloneTraining-BE-Project

Require to install

yarn add multer body-parser xlsx
yarn add @types/multer -D
  • This is the data of file transfer by multer
{
  "fieldname": "myFile",
  "originalname": "demo.txt",
  "encoding": "7bit",
  "mimetype": "text/plain",
  "destination": "./uploads",
  "filename": "myFile-1712912837970",
  "path": "uploads/myFile-1712912837970",
  "size": 7
}
description: validate file format
method: POST
path: /file/upload
body{
  form-data: {
    myFile: file
  }
}

In this section, i've created a file upload API with the following features:

  • Validate File Name
    • filename
  • Validate File Size
    • size
  • File not corrupted
    • corrupted
  • Ok
    • ok

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published