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 <[email protected]>
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;
     }
 

Reply via email to