From 4bad86003c0ad233d2df4853942dd9d28dd4f848 Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Sun, 8 Sep 2019 09:28:13 +0700 Subject: [PATCH] Updated I forgot to update sample config file in the previous commit. config.uploads.fileLength -> config.uploads.fileIdentifierLength. Updated README.md. --- README.md | 2 +- config.sample.js | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 16ba2a3..0ecfa47 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # lolisafe, a small safe worth protecting -![safe.fiery.me](https://i.fiery.me/hIty.png) +[![safe.fiery.me](https://i.fiery.me/zSYB.png)](https://safe.fiery.me) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/WeebDev/lolisafe/master/LICENSE) diff --git a/config.sample.js b/config.sample.js index e381321..981e493 100644 --- a/config.sample.js +++ b/config.sample.js @@ -258,19 +258,13 @@ module.exports = { /* The length of the randomly generated identifier for uploaded files. - If "userChangeable" is set to true, registered users will be able to change - their preferred length from the dashboard. The allowed range will be set - by "min" and "max". Otherwise it will use "default". - - It's possible to have "default" be outside of the "min" and "max" range, - but be aware that once a user has changed their preferred length to be somewhere - within the range, they will no longer be able to restore it back to "default". + If "force" is set to true, files will always use "default". */ - fileLength: { + fileIdentifierLength: { min: 4, max: 32, - default: 32, - userChangeable: false + default: 8, + force: false }, /*