Skip to content

vizeat/multer-storage-uploadcare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multer-storage-uploadcare

Build Status codecov js-standard-style npm version Dependency Status

An Uploadcare storage engine for multer

Installation

npm i --save multer-storage-uploadcare

Usage

'use strict'

const uploadcareStorage = require('multer-storage-uploadcare')
const multer = require('multer', {
  storage: uploadcareStorage({
    public_key: YOUR_UPLOADCARE_PUBLIC_KEY,
    private_key: YOUR_UPLOADCARE_PRIVATE_KEY
    store: 'auto' // 'auto' || 0 || 1
  })
})