feat(files): the Files library API — folders, moving and keeping files, upload into a folder, the file's hash
/api/files is the library's home: list a user's done files (by folder, searched, sorted, or the ones shared with them), rename / move / keep / delete a file, make, rename and delete own folders (a deleted folder's files go back to their source folders), and set how long any folder keeps a file — done files shift by the difference, never closer than the GC's warning window. An upload can name its folder (an own folder or Uploads), checked before the body is read and again before the file lands; it is hashed while it streams, and any file can be hashed on first ask. The download says the hash (Repr-Digest) once it is known; a new file at an asset's path forgets it. Uploads, deletes, keeps, moves and folder changes are audited (ids only). The fileless "expired" rows of the old retention are deleted by migration 0103: an expired file now leaves the library. The shared route helpers moved to routes/files.py; the old /api/downloads library routes delegate to the new ones until the client moves over.
This commit is contained in:
@@ -37,7 +37,8 @@
|
||||
"poster": "There's no poster for this",
|
||||
"profile": "This download profile doesn't exist any more",
|
||||
"season": "This season isn't in the library any more",
|
||||
"show": "This show isn't in the library any more"
|
||||
"show": "This show isn't in the library any more",
|
||||
"folder": "That folder no longer exists"
|
||||
},
|
||||
"admin": {
|
||||
"not_allowed": "Their address isn't approved any more. Add it to the whitelist first.",
|
||||
@@ -219,6 +220,11 @@
|
||||
"screenshot_storage_full": "You've reached the {{limit}} MB screenshot allowance. Remove images from older sessions, or wait until they expire.",
|
||||
"issue_sending": "The report is being sent right now. Wait for it to finish.",
|
||||
"issue_rate_limited": "At most {{limit}} send attempts an hour. Try again later.",
|
||||
"preview_rate_limited": "Too many previews in a row. Wait a minute."
|
||||
"preview_rate_limited": "Too many previews in a row. Wait a minute.",
|
||||
"file_folder_name_required": "Give the folder a name",
|
||||
"file_folder_name_taken": "You already have a folder with that name",
|
||||
"file_folder_not_own": "Only a folder you made can be renamed or deleted",
|
||||
"file_folder_gone": "That folder no longer exists",
|
||||
"file_folder_not_its_source": "A file can only go into one of your own folders or back to the folder it came from"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user