[pve-devel] [PATCH storage] status: add max length and disclaimer to file upload's filename
Lorenz Stechauner
l.stechauner at proxmox.com
Wed Jul 21 14:52:07 CEST 2021
Signed-off-by: Lorenz Stechauner <l.stechauner at proxmox.com>
---
PVE/API2/Storage/Status.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/PVE/API2/Storage/Status.pm b/PVE/API2/Storage/Status.pm
index d16636b..1f44574 100644
--- a/PVE/API2/Storage/Status.pm
+++ b/PVE/API2/Storage/Status.pm
@@ -381,7 +381,8 @@ __PACKAGE__->register_method ({
enum => ['iso', 'vztmpl'],
},
filename => {
- description => "The name of the file to create.",
+ description => "The name of the file to create. Caution: This will be normalized!",
+ maxLength => 255,
type => 'string',
},
tmpfilename => {
--
2.30.2
More information about the pve-devel
mailing list