quick image upload bug fix
This commit is contained in:
parent
5575e9e4f6
commit
2eb8731b30
@ -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')
|
||||
|
||||
|
Reference in New Issue
Block a user