Add component to upload book cover images

This commit is contained in:
2025-10-27 22:51:28 +01:00
parent d407b41c9f
commit 8b8eee8210
11 changed files with 152 additions and 12 deletions

View File

@@ -13,6 +13,7 @@ type Config struct {
DatabaseFilePath string `toml:"database_file_path" comment:"Path to sqlite database file."`
DemoDataPath string `toml:"demo_data_path" comment:"The path to the sql file to load for demo data."`
JWTKey string `toml:"jwt_key" comment:"The key used to encrypt the generated JWT. Encoded in base64. If empty a random one will be generated on every restart."`
ImageFolderPath string `toml:"image_folder_path" comment:"Folder where uploaded files will be stored."`
}
func defaultConfig() Config {
@@ -21,6 +22,7 @@ func defaultConfig() Config {
DatabaseFilePath: "plm.db",
DemoDataPath: "",
JWTKey: "",
ImageFolderPath: "img",
}
}