Allow management operations like deleting files

This introduces the X-Token header field in the response of newly
uploaded files as a simple way for users to manage their own files.

It does not need to be particularly secure.
This commit is contained in:
Mia Herkt
2022-11-30 01:42:49 +01:00
parent eb0b1d2f69
commit a182b6199b
4 changed files with 84 additions and 9 deletions

2
templates/401.html Normal file
View File

@@ -0,0 +1,2 @@
rm: cannot remove '{{ request.path.split("/")[1] }}': Permission denied