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 <f.weber@proxmox.com> [ T: slightly extended commit message ] Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
5c4d3db5ec
commit
4e55684caf
@ -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]+',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user