Remove file when error while saving the data in DB

This commit is contained in:
2026-07-28 13:18:11 +03:00
parent 7d965af68b
commit 8d4067ee8a
5 changed files with 22 additions and 42 deletions
+2 -22
View File
@@ -1,9 +1,5 @@
## Tasks
# Testing
- [ ] Tests for the server module
# Development plans
- [ ] make print_log to write a file log
- [ ] Remove file when error while saving the data in DB
@@ -11,26 +7,10 @@
- [ ] Unified list of exit codes
## Features
- [x] Database integration
- [x] Paging in the file list
- [x] Get files in FS by their hash
- [x] Registration
- [x] Encrypt passwords in DB
- [x] Registration: Error when username or email is already used
- [ ] Sorting in the file list
- [ ] Check correctness of email
- [ ] Message to admin
- [x] Advanced folder structure in the storage
- [ ] File encryption
- [ ] Connection encryption
- [ ] Advanced rights for files
- [ ] Multithreading
## Done
- [x] Switch to SQLite
- [x] Close the DB correctly in any quit case (also by SIGTERM)
- [x] Get rid of unsigned integers
- [x] Check registration
- [x] Auto create a database when one is missing
- [x] Show date in server log
- [ ] Multithreading