1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-13 03:02:49 +00:00

Added file upload and dynamic blog post pages on index

This commit is contained in:
2015-10-20 14:31:22 -05:00
parent 184abc8ac1
commit 5f1fa1cf96
1420 changed files with 269139 additions and 30 deletions

21
node_modules/multer/storage/memory.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
var concat = require('concat-stream')
function MemoryStorage (opts) {}
MemoryStorage.prototype._handleFile = function _handleFile (req, file, cb) {
file.stream.pipe(concat(function (data) {
cb(null, {
buffer: data,
size: data.length
})
}))
}
MemoryStorage.prototype._removeFile = function _removeFile (req, file, cb) {
delete file.buffer
cb(null)
}
module.exports = function (opts) {
return new MemoryStorage(opts)
}