increase file id to 8 bytes
This commit is contained in:
parent
eced5be836
commit
8cf3b89f91
3 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue