multer-s3 = function (opts) { return new S3Storage(opts) }
n/a
function autoContentType(req, file, cb) { file.stream.once('data', function (firstChunk) { var type = fileType(firstChunk) var mime = (type === null ? 'application/octet-stream' : type.mime) var outStream = new stream.PassThrough() outStream.write(firstChunk) file.stream.pipe(outStream) cb(null, mime, outStream) }) }
n/a
DEFAULT_CONTENT_TYPE = function (req, file, cb) { cb(null, value) }
n/a