increase file id to 8 bytes

This commit is contained in:
Danny Coates 2019-03-26 09:32:44 -07:00
parent eced5be836
commit 8cf3b89f91
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
3 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,7 @@ const { encryptedSize } = require('../../app/utils');
const log = mozlog('send.upload');
module.exports = async function(req, res) {
const newId = crypto.randomBytes(5).toString('hex');
const newId = crypto.randomBytes(8).toString('hex');
const metadata = req.header('X-File-Metadata');
const auth = req.header('Authorization');
if (!metadata || !auth) {