Warren
87bac3f201
feat: Generate UUID based on file properties (path+filename+mac+mtime)
UUID generation method changed:
- Old: UUID v4 random (uuid::Uuid::new_v4())
- New: SHA256 hash of file properties
Properties used:
- file_path: absolute path to file
- filename: uploaded filename
- MAC address: from ifconfig en0 (ether)
- mtime: file modification time (milliseconds)
Algorithm:
UUID = SHA256(path|filename|mac|mtime)[0..32]
Example:
Input: /path/file.svg|file.svg|aa:bb:cc:dd:ee:ff|1234567890
Output: 32-char hex string
Matches momentry system:
- Uses deterministic UUID (not random)
- Based on file metadata
- Same file = same UUID
Files:
- src/server.rs (line 800-820: UUID generation logic)
2026-05-17 02:28:06 +08:00
..
2026-05-16 16:13:37 +08:00
2026-05-16 15:37:37 +08:00
2026-05-16 20:47:28 +08:00
2026-05-16 15:37:37 +08:00
2026-05-16 20:30:39 +08:00
2026-05-16 20:30:39 +08:00
2026-05-16 20:30:39 +08:00
2026-05-17 01:30:42 +08:00
2026-05-16 20:50:42 +08:00
2026-05-16 15:37:37 +08:00
2026-05-17 02:28:06 +08:00
2026-05-16 20:47:28 +08:00