From cb9a4b7d2ad9f7c8a766cb267c56b2e1c928f8ad Mon Sep 17 00:00:00 2001 From: Terranom674 Date: Thu, 20 Aug 2026 19:27:48 +0200 Subject: [PATCH] Expose WebDAV file metadata to materialize runtime --- include/webdav_materialize_runtime.inc.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/webdav_materialize_runtime.inc.php b/include/webdav_materialize_runtime.inc.php index 31041d1..06f8053 100644 --- a/include/webdav_materialize_runtime.inc.php +++ b/include/webdav_materialize_runtime.inc.php @@ -75,6 +75,9 @@ function bratonien_tools_webdav_materialize_source_info($image_id) $content_type = ''; $size = 0; $etag = ''; + $fileid = 0; + $width = 0; + $height = 0; $state_dir = rtrim((string)($config['state_dir'] ?? ''), '/'); if ($state_dir !== '') { @@ -92,6 +95,9 @@ function bratonien_tools_webdav_materialize_source_info($image_id) $content_type = (string)($entry['content_type'] ?? ''); $size = (int)($entry['size'] ?? 0); $etag = (string)($entry['etag'] ?? ''); + $fileid = (int)($entry['fileid'] ?? 0); + $width = (int)($entry['width'] ?? 0); + $height = (int)($entry['height'] ?? 0); } } } @@ -106,6 +112,9 @@ function bratonien_tools_webdav_materialize_source_info($image_id) 'content_type'=>$content_type, 'size'=>$size, 'etag'=>$etag, + 'fileid'=>$fileid, + 'width'=>$width, + 'height'=>$height, 'coi'=>$row['coi'] ?? null, ); }