I forgot to update sample config file in the previous commit.
config.uploads.fileLength -> config.uploads.fileIdentifierLength.

Updated README.md.
This commit is contained in:
Bobby Wibowo 2019-09-08 09:28:13 +07:00
parent 02e2e402c3
commit 4bad86003c
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF
2 changed files with 5 additions and 11 deletions

View File

@ -1,6 +1,6 @@
# lolisafe, a small safe worth protecting # 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) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/WeebDev/lolisafe/master/LICENSE)

View File

@ -258,19 +258,13 @@ module.exports = {
/* /*
The length of the randomly generated identifier for uploaded files. The length of the randomly generated identifier for uploaded files.
If "userChangeable" is set to true, registered users will be able to change If "force" is set to true, files will always use "default".
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".
*/ */
fileLength: { fileIdentifierLength: {
min: 4, min: 4,
max: 32, max: 32,
default: 32, default: 8,
userChangeable: false force: false
}, },
/* /*