Changeset e2c3d09 in Klonkt for src/routes/account.js
- Timestamp:
- 07/31/2026 12:33:18 PM (6 weeks ago)
- Branches:
- main
- Children:
- 2dd1dc4
- Parents:
- 859b1707
- File:
-
- 1 edited
-
src/routes/account.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/account.js
r859b1707 re2c3d09 16 16 import path from 'path'; 17 17 import fs from 'fs'; 18 import { fileURLToPath } from 'url';19 18 import bcrypt from 'bcryptjs'; 20 19 import multer from 'multer'; … … 28 27 import { toWebp } from '../services/ImageWebpService.js'; 29 28 import { SUPPORTED } from '../services/i18n.js'; 30 31 const __dirname = path.dirname(fileURLToPath(import.meta.url)); 32 const AVATAR_DIR = path.resolve( 33 process.env.AVATAR_PATH || path.join(__dirname, '..', '..', 'storage', 'media', 'avatars') 34 ); 29 import { mediaDir } from '../config/paths.js'; 30 31 const AVATAR_DIR = mediaDir('AVATAR_PATH', 'avatars'); 35 32 fs.mkdirSync(AVATAR_DIR, { recursive: true }); 36 33
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)