From bb7396d95ec7f41d4fb93a30d16d67e65085b03f Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Tue, 18 Oct 2022 13:56:10 +0100 Subject: [PATCH] fix add-storage-file regression bug (database and file different). When uploading a file to /storage the database stored the un-formatted name and the file was stored with the formated name. This meant when anyone tried to download or rename the file, the website would produce an error. This commit fixes this and has the database and file storage system store the files name in the formatted way (all lowercase with no whitespace). --- src/web.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web.lisp b/src/web.lisp index efd6ca7..5425e57 100644 --- a/src/web.lisp +++ b/src/web.lisp @@ -898,7 +898,7 @@ :do (storage:store-file "" "media" (utils:format-filename (caddr item)) (cdr item)) - (nera:add-storage-file (caddr item) + (nera:add-storage-file (utils:format-filename (caddr item)) (utils:slugify (caddr item)) (cadddr item)) ;; Thumbnail not stored in the database. It