Formatted image file data structure that breaks down by subdir (#1102)

- New utility method for the web app, which sorts image files into dicts where the subdir is the key
- In the web ui, display each subdir in a table nested in a details tag.
- Allow for picking destination subdir when uploading files
- Style the expandable details blocks in the images table
- Add a check for ~ paths to the is_safe_path() utility method
This commit is contained in:
Daniel Markstedt
2023-02-24 17:28:58 -08:00
committed by GitHub
parent 983cff735b
commit dd00547f92
7 changed files with 99 additions and 27 deletions

View File

@@ -254,6 +254,7 @@ def test_upload_file(http_client, delete_file):
form_data = {
"destination": "disk_images",
"subdir": "",
"dzuuid": str(uuid.uuid4()),
"dzchunkindex": chunk_number,
"dzchunksize": chunk_size,