Permalink
Browse files

typo

  • Loading branch information...
tdjsnelling committed Jan 29, 2018
1 parent 182f44e commit 427df4ce7603baa696de3829d0513e5cf4f453ad
Showing with 6 additions and 6 deletions.
  1. +1 −1 cleanup.py
  2. +1 −1 config.json
  3. +2 −2 index.js
  4. +2 −2 public/index.html
View
@@ -13,7 +13,7 @@
files = [f for f in os.listdir(".")]
jsonData = json.load(open('config.json'))
maxage = jsonData['filePersistance']
maxage = jsonData['filePersistence']
for f in files:
stat = os.stat(f)
View
@@ -6,6 +6,6 @@
"application/x-dosexec",
"application/x-msdos-program"
],
"filePersistance": 14,
"filePersistence": 14,
"abuseEmail": "tdjs (at) 0x1.host"
}
View
@@ -15,7 +15,7 @@ var port = config.port;
var rootUrl = config.rootUrl;
var maxFileSize = config.maxFileSize;
var doNotAllow = config.doNotAllow;
var filePersistance = config.filePersistance;
var filePersistence = config.filePersistence;
var abuseEmail = config.abuseEmail;
var storage = multer.diskStorage({
@@ -48,7 +48,7 @@ app.set('view engine', 'ejs');
app.engine('html', consolidate.swig);
app.get('/', (req, res) => {
res.render('index.html', { url: rootUrl, maxFileSize: maxFileSize / (1024 * 1024), doNotAllow: doNotAllow, filePersistance: filePersistance, abuseEmail: abuseEmail });
res.render('index.html', { url: rootUrl, maxFileSize: maxFileSize / (1024 * 1024), doNotAllow: doNotAllow, filePersistence: filePersistence, abuseEmail: abuseEmail });
});
app.post('/', upload.single('file'), (req, res) => {
View
@@ -31,9 +31,9 @@
{{ i }}
{% endfor %}
file persistance:
file persistence:
{{ filePersistance }} days
{{ filePersistence }} days
clone and run your own instance:

0 comments on commit 427df4c

Please sign in to comment.