{"id":13602783,"url":"https://github.com/amorist/nodejs-file-upload-multer","last_synced_at":"2026-03-02T10:16:17.113Z","repository":{"id":101224441,"uuid":"57282521","full_name":"amorist/nodejs-file-upload-multer","owner":"amorist","description":"multer文件上传实例","archived":false,"fork":false,"pushed_at":"2017-06-28T02:29:59.000Z","size":4,"stargazers_count":24,"open_issues_count":0,"forks_count":14,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-02T18:43:16.146Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amorist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-04-28T08:03:02.000Z","updated_at":"2023-02-25T12:43:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"dbb2da86-220a-41c3-bb3c-9254a131131c","html_url":"https://github.com/amorist/nodejs-file-upload-multer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amorist%2Fnodejs-file-upload-multer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amorist%2Fnodejs-file-upload-multer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amorist%2Fnodejs-file-upload-multer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amorist%2Fnodejs-file-upload-multer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amorist","download_url":"https://codeload.github.com/amorist/nodejs-file-upload-multer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223470262,"owners_count":17150523,"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","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":[],"created_at":"2024-08-01T18:01:37.801Z","updated_at":"2026-03-02T10:16:17.048Z","avatar_url":"https://github.com/amorist.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# nodejs-file-upload-multer\n\nmulter文件上传实例\n\npackage version:\n\n    \"multer\": \"^1.1.0\",\n    \"md5\": \"^2.1.0\",\n\n\n\n使用方法：\n\n```\nvar express = require('express');\nvar router = express.Router();\nvar upload = require('./fileupload');\n//文件上传服务\nrouter.post('/upload', upload.single('avatar'), function (req, res, next) {\n    if (req.file) {\n        res.send('文件上传成功')\n        console.log(req.file);\n        console.log(req.body);\n    }\n});\n```\n\nform:\n\n```\n\u003cform id='editfile' method='post' action='/system/upload' enctype='multipart/form-data'\u003e\n    \u003cinput name=\"text\" type=\"text\"/\u003e\n    选择图片：\u003cinput name=\"avatar\" id='upfile' type='file'/\u003e\n    \u003cinput type='submit' value='提交'/\u003e\n\u003c/form\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famorist%2Fnodejs-file-upload-multer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famorist%2Fnodejs-file-upload-multer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famorist%2Fnodejs-file-upload-multer/lists"}