From 055f52797b80ef61c78c10cf7a267c1ef4d88865 Mon Sep 17 00:00:00 2001 From: lum Date: Fri, 20 Jun 2025 14:20:02 -0700 Subject: [PATCH] POST a multipart form only when the page may upload a file --- .../flow/controllers/executescript/importAnalysis.jsp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flow/src/org/labkey/flow/controllers/executescript/importAnalysis.jsp b/flow/src/org/labkey/flow/controllers/executescript/importAnalysis.jsp index 956f5c52f9..3a4a171e65 100644 --- a/flow/src/org/labkey/flow/controllers/executescript/importAnalysis.jsp +++ b/flow/src/org/labkey/flow/controllers/executescript/importAnalysis.jsp @@ -44,6 +44,10 @@ ImportAnalysisForm form = (ImportAnalysisForm)getModelBean(); Container container = getContainer(); ActionURL cancelUrl = urlProvider(ProjectUrls.class).getStartURL(container); + // we are only posting files for the first step of the wizard + String enctype = form.getStep() > AnalysisScriptController.ImportAnalysisStep.SELECT_ANALYSIS.getNumber() + ? "application/x-www-form-urlencoded" + : "multipart/form-data"; %>