{"repo":"richardgirges/express-fileupload","free":true,"listed":false,"github":"https://github.com/richardgirges/express-fileupload","clone":"git clone https://github.com/richardgirges/express-fileupload.git","description":"Simple express file upload middleware that wraps around busboy","language":"JavaScript","stars":1557,"topics":["express-middleware","express-fileupload","fileupload","file-upload","upload","forms","multipart","files","nodejs","connect"],"license":"MIT","category":"security-tools","readme_excerpt":"express-fileupload Simple express middleware for uploading files. Help us Improve express-fileupload This package is still very much supported and maintained. But the more help the better. If you're interested any of the following: Ticket and PR triage Feature scoping and implementation Maintenance (upgrading packages, fixing security vulnerabilities, etc) ...please contact richardgirges '-at-' gmail.com Install Usage When you upload a file, the file will be accessible from req.files . Example: You're uploading a file called car.jpg Your input's name field is foo : In your express server request, you can access your uploaded file from req.files.foo : The req.files.foo object will contain the following: req.files.foo.name : \"car.jpg\" req.files.foo.mv : A function to move the file elsewhere on your server. Can take a callback or return a promise. req.files.foo.mimetype : The mimetype of your file req.files.foo.data : A buffer representation of your file, returns empty buffer in case useTempFiles option was set to true. req.files.foo.tempFilePath : A path to the temporary file in case useTempFiles option was set to true. req.files.foo.truncated : A boolean that represents if the file is over the size limit req.files.foo.size : Uploaded size in bytes req.files.foo.md5 : MD5 checksum of the uploaded file Notes about breaking changes with MD5 handling: Before 1.0.0, md5 is an MD5 checksum of the uploaded file. From 1.0.0 until 1.1.1, md5 is a function to compute an MD5 hash (Read a","default_branch":null,"files":null,"tree":[],"storefront":"/r/richardgirges","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/richardgirges/express-fileupload/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}