diff --git a/control/frontend/src/components/DisplayObject.svelte b/control/frontend/src/components/DisplayObject.svelte
index 67071ab..3c54969 100644
--- a/control/frontend/src/components/DisplayObject.svelte
+++ b/control/frontend/src/components/DisplayObject.svelte
@@ -1,7 +1,7 @@
@@ -222,7 +239,10 @@
is_selected(file.id, $selected_file_ids)
)} duration-200 transition-colors"
>
-
+
{get_file_size_display_string(file.size)}
diff --git a/control/frontend/src/ts/api_handler.ts b/control/frontend/src/ts/api_handler.ts
index db7269d..193996f 100644
--- a/control/frontend/src/ts/api_handler.ts
+++ b/control/frontend/src/ts/api_handler.ts
@@ -1,19 +1,29 @@
import type { FolderElement } from "./types";
import { get_uuid } from "./utils";
-interface FileInfo {
- name: string;
- type: string;
- size: string;
- created: string;
+export async function get_screenshot(ip: string) {
+ const options = { method: 'PATCH' };
+ return await request(ip, '/takeScreenshot', options);
+}
+
+export async function open_file(ip: string, path_to_file: string) {
+ const options = { method: 'PATCH', headers: { 'content-type': 'application/octet-stream' } };
+ const raw_response = await request(ip, `/file${path_to_file}`, options);
}
export async function get_file_data(ip: string, path: string): Promise