lowercase file extension for epub and pdf

This commit is contained in:
daniel-j
2024-07-21 12:08:28 +02:00
parent 24a66d2441
commit 235308f5f3

View File

@@ -338,6 +338,7 @@ router.post('/upload', async (ctx, next) => {
} else {
// No conversion
data = ctx.request.file.path
filename = filename.replace(/\.epub$/i, '.epub').replace(/\.pdf$/i, '.pdf')
}
expireKey(key)