{"id":21953424,"url":"https://github.com/huangang/fastify-file-upload","last_synced_at":"2025-09-12T04:31:53.227Z","repository":{"id":44907234,"uuid":"123559001","full_name":"huangang/fastify-file-upload","owner":"huangang","description":"Fastify plugin for uploading files","archived":false,"fork":false,"pushed_at":"2023-10-22T20:12:12.000Z","size":22,"stargazers_count":76,"open_issues_count":8,"forks_count":11,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-02T15:56:24.753Z","etag":null,"topics":["fastify","fastify-plugin","fastifyjs-plugin","file-upload"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huangang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-02T09:25:55.000Z","updated_at":"2025-08-20T17:35:07.000Z","dependencies_parsed_at":"2024-06-18T15:25:25.304Z","dependency_job_id":"c759c12b-0323-4126-a279-8d49be4177a1","html_url":"https://github.com/huangang/fastify-file-upload","commit_stats":{"total_commits":24,"total_committers":4,"mean_commits":6.0,"dds":0.25,"last_synced_commit":"a814d16cfde7bcf7a267b999d51102b7332c8116"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/huangang/fastify-file-upload","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huangang%2Ffastify-file-upload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huangang%2Ffastify-file-upload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huangang%2Ffastify-file-upload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huangang%2Ffastify-file-upload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huangang","download_url":"https://codeload.github.com/huangang/fastify-file-upload/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huangang%2Ffastify-file-upload/sbom","scorecard":{"id":471561,"data":{"date":"2025-08-11","repo":{"name":"github.com/huangang/fastify-file-upload","commit":"a814d16cfde7bcf7a267b999d51102b7332c8116"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":1,"reason":"Found 3/21 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T14:00:33.762Z","repository_id":44907234,"created_at":"2025-08-19T14:00:33.763Z","updated_at":"2025-08-19T14:00:33.763Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274753611,"owners_count":25342825,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastify","fastify-plugin","fastifyjs-plugin","file-upload"],"created_at":"2024-11-29T07:08:46.582Z","updated_at":"2025-09-12T04:31:53.183Z","avatar_url":"https://github.com/huangang.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# fastify-file-upload\n\nFastify plugin to upload file.\n\n[![Build Status](https://travis-ci.org/huangang/fastify-file-upload.svg?branch=master)](https://travis-ci.org/huangang/fastify-file-upload)\n[![NPM version](https://img.shields.io/npm/v/fastify-file-upload.svg?style=flat)](https://www.npmjs.com/package/fastify-file-upload)\n\n__Note: the v3.x series of this module covers Fastify v3. For Fastify v2 support refert to the v2.x series.__\n\n## Install\n```\nnpm i fastify-file-upload --save\n```\n## Usage\n\n```js\n'use strict'\n\nconst fastify = require('fastify')()\nconst fileUpload = require('fastify-file-upload')\n\nfastify.register(fileUpload)\n\nfastify.post('/upload', function (req, reply) {\n  // some code to handle file\n  const files = req.raw.files\n  console.log(files)\n  let fileArr = []\n  for(let key in files){\n    fileArr.push({\n      name: files[key].name,\n      mimetype: files[key].mimetype\n    })\n  }\n  reply.send(fileArr)\n})\n\nfastify.listen(3000, err =\u003e {\n  if (err) throw err\n  console.log(`server listening on ${fastify.server.address().port}`)\n})\n```\n## Use Schema Demo (fastify version \u003e= 2)\n``` js\nfastify.post('/uploadSchema', {\n  schema: {\n    summary: 'upload file',\n    body: {\n      type: 'object',\n      properties: {\n        file: { type: 'object' }\n      },\n      required: ['file']\n    }\n  },\n  handler: (request, reply) =\u003e {\n    const file = request.body.file\n    console.log(file)\n    reply.send({ file })\n  }\n})\n```\n\n## Using Busboy Options\n```js\nfastify.register(fileUpload, {\n  limits: { fileSize: 50 * 1024 * 1024 },\n});\n```\n### [Available Options](https://github.com/richardgirges/express-fileupload#available-options)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuangang%2Ffastify-file-upload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuangang%2Ffastify-file-upload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuangang%2Ffastify-file-upload/lists"}