quick image upload bug fix

This commit is contained in:
Evert Prants 2017-12-07 22:15:54 +02:00
parent 5575e9e4f6
commit 2eb8731b30
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ async function uploadImage (identifier, fields, files) {
fields = saneFields(fields)
// Get file info, generate a file name
let fileHash = crypto.randomBytes(12).toString('hex')
let fileHash = uuid()
let contentType = file.headers['content-type']
if (!contentType) return bailOut(file.path, 'Invalid of missing content-type header')