From 4e55684cafde4086b24729365871ee4ee0d31d6b Mon Sep 17 00:00:00 2001 From: Friedrich Weber Date: Thu, 4 May 2023 11:13:34 +0200 Subject: [PATCH] api: upload: add pattern to tmpfilename parameter The `tmpfilename` is generated by pve-http-server and always adheres to this pattern, so make this explicit to prevent confusion and have a more complete JSON API schema, useful for e.g., the API viewer. Signed-off-by: Friedrich Weber [ T: slightly extended commit message ] Signed-off-by: Thomas Lamprecht --- PVE/API2/Storage/Status.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/API2/Storage/Status.pm b/PVE/API2/Storage/Status.pm index e028423..e4ce698 100644 --- a/PVE/API2/Storage/Status.pm +++ b/PVE/API2/Storage/Status.pm @@ -405,6 +405,7 @@ __PACKAGE__->register_method ({ description => "The source file name. This parameter is usually set by the REST handler. You can only overwrite it when connecting to the trusted port on localhost.", type => 'string', optional => 1, + pattern => '/var/tmp/pveupload-[0-9a-f]+', }, }, },