From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 2B5661FF09B for ; Mon, 28 Sep 2026 09:17:46 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 7F684219FD; Mon, 28 Sep 2026 09:15:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dualfroz.com; s=dkim; t=1790412576; h=from:subject:date:message-id:to:mime-version: content-transfer-encoding; bh=Ra/Vqt13l+Olp5zfqucCpfCdC7tTA6ByitIeHpuFFHo=; b=HpqApYCzfT9L6R/4tqfJVBttk38b1bdJmU9h9TkAaLL5VYYG1CSgpeu4uhuzfjF2dtkudv Xijk08+AU35lhjZE5V32tDKmQUOyrgtNqol1NzYLYxVAtyXJuu5ZpgfeOFHwh0uC5Tn6UK lZR4g3gyIGtrVkkDilLPO15fo9aQaho+mg/Rg/l3jaEgmdizWpUy69VGTQqIeY/lqXYKeK vZxptJOn8jAxeitJ38v0rkiNpZKfAnRUCBvPhEU/bmhyGXRML8kzNi4sO3ltOZVqq6jYoS hHoTgheaL9r/nawFFvfiF0g/0N0H3/yB+1MX10xzTuTfk4ZyEk8toszo6Eg6pA== From: Michal Fox To: pve-devel@lists.proxmox.com Subject: [PATCH manager] fix #6475: ui: upload: only show the file name of the selected file Date: Sat, 26 Sep 2026 08:49:35 +0000 Message-ID: <20260926084935.7-1-me@dualfroz.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.285 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record X-MailFrom: me@dualfroz.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation Message-ID-Hash: DBN7RJQMJKRP5MSUTINS6YAGC4UQ5N22 X-Message-ID-Hash: DBN7RJQMJKRP5MSUTINS6YAGC4UQ5N22 X-Mailman-Approved-At: Mon, 28 Sep 2026 09:14:43 +0200 X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: For privacy reasons, browsers do not expose the real path of a selected file and prefix its name with 'C:\fakepath\' instead, on every platform. The file field of the upload window shows this value as is, which confuses users on Linux or macOS clients. Show the name of the selected file object instead. Only the displayed value changes, the upload itself uses the file object and is not affected. Signed-off-by: Michal Fox --- www/manager6/window/UploadToStorage.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/manager6/window/UploadToStorage.js b/www/manager6/window/UploadToStorage.js index cc53596d..8010e127 100644 --- a/www/manager6/window/UploadToStorage.js +++ b/www/manager6/window/UploadToStorage.js @@ -167,6 +167,8 @@ Ext.define('PVE.window.UploadToStorage', { (fileInput.files[0] && Proxmox.Utils.format_size(fileInput.files[0].size)) || '-', ); vm.set('mimetype', (fileInput.files[0] && fileInput.files[0].type) || '-'); + // browsers hide the real path behind 'C:\fakepath\', so only show the file name + input.setRawValue(fileInput.files[0]?.name ?? ''); }, hashChange: function (field, value) { -- 2.43.0