{"id":22443078,"url":"https://github.com/riversun/multer-discard-storage","last_synced_at":"2025-03-27T10:19:32.878Z","repository":{"id":57304932,"uuid":"235285651","full_name":"riversun/multer-discard-storage","owner":"riversun","description":"A storage implementation for multer that immediately discards uploaded files without saving them to memory or disk.","archived":false,"fork":false,"pushed_at":"2023-03-03T12:03:44.000Z","size":35,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T16:51:16.329Z","etag":null,"topics":["discard","low","memory","memorystorage","multer","storage"],"latest_commit_sha":null,"homepage":null,"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/riversun.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}},"created_at":"2020-01-21T08:01:01.000Z","updated_at":"2020-01-21T08:09:16.000Z","dependencies_parsed_at":"2023-01-27T07:16:30.924Z","dependency_job_id":null,"html_url":"https://github.com/riversun/multer-discard-storage","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/riversun%2Fmulter-discard-storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riversun%2Fmulter-discard-storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riversun%2Fmulter-discard-storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riversun%2Fmulter-discard-storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riversun","download_url":"https://codeload.github.com/riversun/multer-discard-storage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245823317,"owners_count":20678173,"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":["discard","low","memory","memorystorage","multer","storage"],"created_at":"2024-12-06T02:22:24.859Z","updated_at":"2025-03-27T10:19:32.860Z","avatar_url":"https://github.com/riversun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discard storage for multer\n\nA storage implementation for [multer](https://github.com/expressjs/multer) that immediately discards uploaded files without saving them to memory or disk.\n\n## Install\n\n```\nnpm install multer-discard-storage\n```\n\n## Usage\n\n```javascript\nvar multer = require('multer');\nconst discardStorage=require('multer-discard-storage')();\nvar upload = multer({storage: discardStorage});\n```\n\n## Example\n\n```javascript\n\nconst express = require('express');\nconst multer = require('multer');\nconst app = express();\nconst port = 8080;\n\napp.post('/upload',\n    upload.any(),\n    function (req, res, next) {\n\n        for (let i in req.files) {\n            const file = req.files[i];\n            console.log(`No.${i} file uploaded. file size is ${file.size}`);\n        }\n\n        res.status(200).json({msg: 'OK'});\n\n    });\n\napp.listen(port, () =\u003e {\n    console.log('Server started on port:' + port);\n});\n\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friversun%2Fmulter-discard-storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friversun%2Fmulter-discard-storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friversun%2Fmulter-discard-storage/lists"}