File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
flow/src/org/labkey/flow/controllers/executescript Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 44
44
ImportAnalysisForm form = (ImportAnalysisForm )getModelBean();
45
45
Container container = getContainer();
46
46
ActionURL cancelUrl = urlProvider(ProjectUrls . class). getStartURL(container);
47
+ // we are only posting files for the first step of the wizard
48
+ String enctype = form. getStep() > AnalysisScriptController . ImportAnalysisStep . SELECT_ANALYSIS. getNumber()
49
+ ? " application/x-www-form-urlencoded"
50
+ : " multipart/form-data" ;
47
51
% >
48
52
<script type =" text/javascript" nonce =" <%= getScriptNonce() % >" >
49
53
function endsWith (a ,b )
85
89
86
90
<labkey:errors />
87
91
88
- <labkey:form name =" <%= ImportAnalysisForm . NAME% >" action =" <%= new ActionURL (AnalysisScriptController . ImportAnalysisAction . class, container)% >" method =" POST" enctype =" multipart/form-data " >
92
+ <labkey:form name =" <%= ImportAnalysisForm . NAME% >" action =" <%= new ActionURL (AnalysisScriptController . ImportAnalysisAction . class, container)% >" method =" POST" enctype =" <%= enctype % > " >
89
93
<input type =" hidden" name =" step" value =" <%= form. getStep() % >" >
90
94
<%
91
95
for (Map . Entry<String , String > entry : form. getWorkspace(). getHiddenFields(getViewContext()). entrySet())
You can’t perform that action at this time.
0 commit comments