#2422 Move uploads under the data root

This commit is contained in:
Cohee
2024-06-26 23:22:42 +03:00
parent 54fb7a9030
commit 5b002c6e46
10 changed files with 27 additions and 24 deletions

View File

@ -196,7 +196,10 @@ const CHAT_COMPLETION_SOURCES = {
GROQ: 'groq',
};
const UPLOADS_PATH = './uploads';
/**
* Path to multer file uploads under the data root.
*/
const UPLOADS_DIRECTORY = '_uploads';
// TODO: this is copied from the client code; there should be a way to de-duplicate it eventually
const TEXTGEN_TYPES = {
@ -364,7 +367,7 @@ module.exports = {
PUBLIC_DIRECTORIES,
USER_DIRECTORY_TEMPLATE,
UNSAFE_EXTENSIONS,
UPLOADS_PATH,
UPLOADS_DIRECTORY,
GEMINI_SAFETY,
BISON_SAFETY,
TEXTGEN_TYPES,