improve installation/documentation

This commit is contained in:
lesion
2019-07-03 16:58:24 +02:00
parent 6a96193ffc
commit 412e6f7dae
11 changed files with 131 additions and 129 deletions

View File

@@ -6,7 +6,11 @@ const sharp = require('sharp')
const consola = require('consola')
const config = require('config')
mkdirp.sync(config.upload_path + '/thumb')
try {
mkdirp.sync(config.upload_path + '/thumb')
} catch (e) {
consola.error(e)
}
const DiskStorage = {
_handleFile(req, file, cb) {