You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by ah...@apache.org on 2026/01/13 12:54:33 UTC
(causeway) branch maintenance-branch updated: CAUSEWAY-3950: disables preview for uploaded files (wicket)
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch maintenance-branch
in repository https://gitbox.apache.org/repos/asf/causeway.git
The following commit(s) were added to refs/heads/maintenance-branch by this push:
new 3eba5042723 CAUSEWAY-3950: disables preview for uploaded files (wicket)
3eba5042723 is described below
commit 3eba50427232ee4f0d30313106df65ae3a8d39b5
Author: andi-huber <ah...@apache.org>
AuthorDate: Tue Jan 13 13:28:49 2026 +0100
CAUSEWAY-3950: disables preview for uploaded files (wicket)
---
.../src/main/java/org/apache/causeway/viewer/wicket/ui/util/Wkt.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/util/Wkt.java b/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/util/Wkt.java
index 2bbf5569ee0..4e6469a467e 100644
--- a/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/util/Wkt.java
+++ b/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/util/Wkt.java
@@ -687,7 +687,10 @@ public FileUploadField fileUploadField(
.mainClass("input-group-sm")
.initialCaption(initialCaption)
.captionClass("form-control-sm")
- .showUpload(false));
+ .showUpload(false)
+ //[CAUSEWAY-3950] preview may trigger unwanted downloads of the file that just got uploaded
+ // we were seeing this with Chrome browser and files of type CSV
+ .showPreview(false));
return fileUploadField;
}