Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ass/commit/007be952495621fde0d0859cac07a35079c3c598 You should set ROOT_URL correctly, otherwise the web may not work correctly.

attempt fix for text files

pull/29/head
tycrek 4 years ago
parent 41c0a0ae42
commit 007be95249
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -34,7 +34,7 @@ function getLocalFilename(req) {
function processUploaded(req, res, next) {
// Fixes
req.file.mimetype = req.file.detectedMimeType;
req.file.ext = req.file.detectedFileExtension;
req.file.ext = req.file.detectedFileExtension || req.file.clientReportedFileExtension;
req.file.originalname = sanitize(req.file.originalName);
req.file.randomId = generateId('random', ID_GEN_LENGTH, null, null);
req.file.deleteId = generateId('random', ID_GEN_LENGTH, null, null);

Loading…
Cancel
Save